Missing radians conversion
Summary
In PHOTOVOLTAICS/production.py module, the tilt of PV panels is in degrees instead of radians.
Steps to reproduce
n/a
What is the current bug behavior?
In MODULES.PHOTOVOLTAICS.production.PV_Production.get_tiltY_along_time(), if tracking is inactive (i.e. if self.n_rot_axis == 0: resolves to True), the tiltY value is obtained by multiplying the self.tiltY attribute by a vector of ones (of shape equal to the number of timesteps). The self.tiltY is the value from the input dictionary, in degrees.
What is the expected correct behavior?
The value should be converted to radians.
Relevant logs and/or screenshots
n/a
Possible fixes
tiltY = self.tiltY*np.ones((len(sun_vect[:,0])))
becomes:
tiltY = np.deg2rad(self.tiltY*np.ones((len(sun_vect[:,0]))))