-
Notifications
You must be signed in to change notification settings - Fork 1.1k
coefficient estimation method following DeSoto(2006) #784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
c5287ea
5a39fea
7b24201
c16f1d0
e7ef571
cdb2a73
0cfe13f
0c27829
d8653cd
bbb4580
6b8fadf
121cb06
47e1be4
c1b62c4
4e62d1a
747ed48
9ea2ed8
bd39dbd
ae5c8be
2d4f8f3
485dae6
77d88a2
6fcafc7
2d53d5d
fdbf5ec
0e1b4b3
d2d8c45
a70debb
e01f262
17f8617
e14ad40
32049b0
bfe3994
7ff8a96
7f08d80
27ab961
79ef920
5e9cf8d
c02e74f
fa41eb8
753d312
b1b405c
22d613c
ae19a68
6913a52
05051e1
d4772c6
d821494
9d23552
5037da6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
…K rather than %/K. - 'celltype' input replaced by EgRef and dEgdT, with values of Si as default
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ def get_cec_params_cansol_cs5p_220p(): | |
def get_test_specs_params(): | ||
cwhanse marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"""Specifications of module Kyocera KU270-6MCA""" | ||
return {'v_mp': 31.0, 'i_mp': 8.71, 'v_oc': 38.3, | ||
'i_sc': 9.43, 'alpha_sc': 0.06, 'beta_voc': -0.36} | ||
'i_sc': 9.43, 'alpha_sc': 0.005658, 'beta_voc': -0.13788} | ||
|
||
|
||
@requires_scipy | ||
|
@@ -111,7 +111,7 @@ def test_fit_sdm_cec_sam(get_cec_params_cansol_cs5p_220p): | |
|
||
@requires_scipy | ||
def test_fit_sdm_desoto(get_test_specs_params): | ||
result = ivtools.fit_sdm_desoto(celltype='polysi', cells_in_series=60, | ||
result = ivtools.fit_sdm_desoto(cells_in_series=60, | ||
tylunel marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. move There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cells_in_series is not in the get_test_specs_params fixture because it changes at line 129 of the test in order to cause the RuntimeError. I feel like it would be more complicated to add it the fixture and to change it later to have the RuntimeError. What do you think ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd prefer to see it added to the fixture and then modified in the function that causes the |
||
**get_test_specs_params) | ||
result_expected = {'I_L_ref': 9.452324509050774, | ||
'I_o_ref': 3.2246097466679494e-10, | ||
|
@@ -125,17 +125,6 @@ def test_fit_sdm_desoto(get_test_specs_params): | |
'temp_ref': 25} | ||
assert np.allclose(pd.Series(result), pd.Series(result_expected), | ||
rtol=1e-4) | ||
with pytest.raises(NotImplementedError): | ||
ivtools.fit_sdm_desoto(celltype='CDTE', cells_in_series=60, | ||
**get_test_specs_params) | ||
with pytest.raises(ValueError): | ||
ivtools.fit_sdm_desoto(celltype='apple', cells_in_series=60, | ||
**get_test_specs_params) | ||
with pytest.raises(RuntimeError): | ||
ivtools.fit_sdm_desoto(celltype='polysi', cells_in_series=10, | ||
v_mp=31.0, i_mp=8.71, v_oc=38.3, | ||
i_sc=9.43, alpha_sc=0.06, | ||
beta_voc=-0.36) | ||
|
||
|
||
cwhanse marked this conversation as resolved.
Show resolved
Hide resolved
|
||
@pytest.fixture | ||
|
Uh oh!
There was an error while loading. Please reload this page.