-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Milestone
Description
Not sure this issue is a bug or a misuse from my side, but here is my problem.
When trying to build a ModelChain
with module parameters found in the CEC database, several errors arise:
- if no AOI model is provided, I get
ValueError: could not infer AOI model from system.module_parameters
- then using the
physical
AOI model (chosen because I found in the code that this model has default parameters), when trying to run, I getKeyError: 'precipitable_water'
. It appears that the default spectral model expects'precipitable_water'
in weather data, and I could not find information on such a parameter in the documentation. - then the only spectral model working is
no_loss
.
To Reproduce
from pvlib.location import Location
from pvlib.pvsystem import retrieve_sam, PVSystem
from pvlib.modelchain import ModelChain
inv_par = retrieve_sam("CECInverter")["ABB__MICRO_0_25_I_OUTD_US_208_208V__CEC_2014_"]
mod_par = retrieve_sam("CECMod")["SunPower_SPR_E20_435_COM"]
loc = Location(0.,0.)
pv = PVSystem(inverter_parameters=inv_par, module_parameters=mod_par)
mc = ModelChain(pv, loc, orientation_strategy="None")
then
mc = ModelChain(pv, loc, orientation_strategy="None", aoi_model="physical")
mc.run_model()
Expected behavior
Or a running ModelChain or clear errors indicating the bad parametrization, and potentially where to find information.
Versions:
pvlib.__version__
: 0.6.0pandas.__version__
: 0.23.4- python: 3.6