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
First of all one can simply write: solar_zenith = kwargs.get('solar_zenith', self.solar_zenith').
But at the moment the solar_zenith is neither an attribute of the class nor of the parent class. Furthermore the solar_zenith (apparent_zenith) is not obligate, but I should be. So we should change it to something like this:
To me it seems to be some kind of relict because according to the docstrings the zenith parameter is obligate.
You will find the same issue for the azimuth angle.
I think it is not urgent, because most users will understand that they have to pass zenith and azimuth to get the total irradiation and I will not have the time to write the according tests.
Maybe somebody who works with tracking may want to bring that in line.
The text was updated successfully, but these errors were encountered:
This is closely related to #351. I think the function signature should include the surface tilt & azimuth and the solar zenith & azimuth angles, then we can get rid of the inappropriate attribute nonsense.
Yes, it is a relic from when I was trying to figure out the scope and API of these classes.
I do not use
tracking
but working on PR330 it seems to me that there is something wrong.https://github.com/pvlib/pvlib-python/blob/master/pvlib/tracking.py#L113
First of all one can simply write:
solar_zenith = kwargs.get('solar_zenith', self.solar_zenith')
.But at the moment the
solar_zenith
is neither an attribute of the class nor of the parent class. Furthermore thesolar_zenith
(apparent_zenith
) is not obligate, but I should be. So we should change it to something like this:To me it seems to be some kind of relict because according to the docstrings the
zenith
parameter is obligate.You will find the same issue for the
azimuth
angle.I think it is not urgent, because most users will understand that they have to pass
zenith
andazimuth
to get the total irradiation and I will not have the time to write the according tests.Maybe somebody who works with tracking may want to bring that in line.
The text was updated successfully, but these errors were encountered: