Closed mi-hol closed 1 year ago
root cause seems to be a breaking change in pvlib v.9.0 detailed in https://pvlib-python.readthedocs.io/en/v0.9.2/whatsnew.html#v0-9-0-september-1-2021
"The orientation_strategy parameter has been removed from the various pvlib.modelchain.ModelChain constructors and surface_tilt, surface_azimuth are now required parameters for pvlib.modelchain.basic_chain() (GH1028, GH1181)"
a quick fix is to change "dwdforecast.py" from
#self.myModelChain = ModelChain(self.mysolarsystem, self.mypvliblocation,aoi_model='no_loss',orientation_strategy="None",spectral_model='no_loss')
to
self.myModelChain = ModelChain(self.mysolarsystem, self.mypvliblocation,aoi_model='no_loss',spectral_model='no_loss')
but several future incompatibilies are reported
/mnt/c/Users/user/Documents/.venv/lib/python3.9/site-packages/pvlib/tools.py:359: RuntimeWarning: divide by zero encountered in divide
np.trunc(np.log(atol / (df['VH'] - df['VL'])) / np.log(phim1)))
/mnt/c/Users/user/Documents/.venv/lib/python3.9/site-packages/pvlib/modelchain.py:511:
pvlibDeprecationWarning: ModelChain.ac is deprecated and will be removed in v0.10.
**Use ModelChain.results.ac instead**
warnings.warn(msg, pvlibDeprecationWarning)
/mnt/c/Users/user/Documents/.venv/lib/python3.9/site-packages/pvlib/modelchain.py:511:
pvlibDeprecationWarning: ModelChain.cell_temperature is deprecated and will be removed in v0.10.
**Use ModelChain.results.cell_temperature instead**
warnings.warn(msg, pvlibDeprecationWarning)
Would you accept a PR with fixes?
Is this repo dead? In case it is, I'd recommend to archive it
Hi mi-hol sorry for the delayed response. I have updated the module to work with pvlib 0.9.4 - and also prepared it to work with the upcoming pvlib 0.19
Hi Kilian,
tried to run your script with original configuration.ini but got an error. Environment is:
Any hint how to fix this?
Full details: