You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many of these SAPM parameters are not used in the SAPM DC model. A0-A4 are for the airmass modifier. B0-B5 are for beam IAM. FD is for diffuse IAM. None of these are required to run the DC portion of the SAPM, implemented in pvlib.pvsystem.sapm.
However, because these non-DC parameters are listed in _DC_MODEL_PARAMS, ModelChain raises an error if you do not supply them when setting dc_model='sapm'. Here is an example of code that I would like to execute successfully:
However, with the current pvlib, it fails, complaining about the missing non-DC parameters:
ValueError: sapm selected for the DC model but one or more Arrays are missing one or more required parameters : {'B4', 'FD', 'B5', 'B1', 'A3', 'B0', 'B2', 'A0', 'A4', 'A2', 'B3', 'A1'}
I propose we remove the A*, B*, and FD parameters from this dictionary.
I could not locate any previous discussion of this, aside from a very brief exchange when the dictionary was first added: #548 (comment)
The text was updated successfully, but these errors were encountered:
pvlib.pvsystem._DC_MODEL_PARAMS
lists parameter names for each of several DC models, including the SAPM:pvlib-python/pvlib/pvsystem.py
Lines 29 to 36 in 6440ada
Many of these SAPM parameters are not used in the SAPM DC model.
A0-A4
are for the airmass modifier.B0-B5
are for beam IAM.FD
is for diffuse IAM. None of these are required to run the DC portion of the SAPM, implemented inpvlib.pvsystem.sapm
.However, because these non-DC parameters are listed in
_DC_MODEL_PARAMS
,ModelChain
raises an error if you do not supply them when settingdc_model='sapm'
. Here is an example of code that I would like to execute successfully:However, with the current pvlib, it fails, complaining about the missing non-DC parameters:
I propose we remove the
A*
,B*
, andFD
parameters from this dictionary.I could not locate any previous discussion of this, aside from a very brief exchange when the dictionary was first added: #548 (comment)
The text was updated successfully, but these errors were encountered: