Skip to content

Commit 2abcd4e

Browse files
committed
remove shim code for pre-0.6 from calc params desoto
1 parent aa704e9 commit 2abcd4e

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

pvlib/pvsystem.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,27 +1042,6 @@ def calcparams_desoto(effective_irradiance, temp_cell,
10421042
Source: [4]
10431043
'''
10441044

1045-
# test for use of function pre-v0.6.0 API change
1046-
if isinstance(a_ref, dict) or \
1047-
(isinstance(a_ref, pd.Series) and ('a_ref' in a_ref.keys())):
1048-
import warnings
1049-
warnings.warn('module_parameters detected as fourth positional'
1050-
+ ' argument of calcparams_desoto. calcparams_desoto'
1051-
+ ' will require one argument for each module model'
1052-
+ ' parameter in v0.7.0 and later', DeprecationWarning)
1053-
try:
1054-
module_parameters = a_ref
1055-
a_ref = module_parameters['a_ref']
1056-
I_L_ref = module_parameters['I_L_ref']
1057-
I_o_ref = module_parameters['I_o_ref']
1058-
R_sh_ref = module_parameters['R_sh_ref']
1059-
R_s = module_parameters['R_s']
1060-
except Exception as e:
1061-
raise e('Module parameters could not be extracted from fourth'
1062-
+ ' positional argument of calcparams_desoto. Check that'
1063-
+ ' parameters are from the CEC database and/or update'
1064-
+ ' your code for the new API for calcparams_desoto')
1065-
10661045
# Boltzmann constant in eV/K
10671046
k = 8.617332478e-05
10681047

0 commit comments

Comments
 (0)