0

I am currently attempting to model a basic PV system using pvlib in python and am having an issue with the AOI model under when setting up PVSytem. The argument is not recognised despite matching what is required in the documentation and prompts. The error message is as follows:

ValueError: could not infer AOI model from system.arrays[i].module_parameters. Check that the module_parameters for all Arrays in system.arrays contain parameters for the physical, aoi, ashrae or martin_ruiz model; explicitly set the model with the aoi_model kwarg; or set aoi_model="no_loss"

The relevant code used is as follows:

cec_modules = pvlib.pvsystem.retrieve_sam('CECMod') 
cec_inverters = pvlib.pvsystem.retrieve_sam('CECInverter') 
pv_module = cec_modules['A10Green_Technology_A10J_S72_175'] 
inv = cec_inverters['Siemens_Industry__SINVERT_PVM24_UL__480V_']  
system = PVSystem(surface_tilt=30, surface_azimuth=180, module_parameters= pv_module, inverter_parameters=inv, temperature_model_parameters=temperature_parameters)

I tried setting setting aoi_model="no_loss" as specified in the error message but received an error of:

"TypeError: _init_() got an unexpected keyword argument 'aoi_model' "

python 3.9.13

pvlib v0.9.4

0 Answers0