diff --git a/docs/sphinx/source/whatsnew/v0.9.4.rst b/docs/sphinx/source/whatsnew/v0.9.4.rst index 8a67c201f0..7bd220106d 100644 --- a/docs/sphinx/source/whatsnew/v0.9.4.rst +++ b/docs/sphinx/source/whatsnew/v0.9.4.rst @@ -27,9 +27,10 @@ Testing ~~~~~~~ * Corrected a flawed test for :py:func:`~pvlib.irradiance.get_ground_diffuse` (:issue:`1569`, :pull:`1575`) + Documentation ~~~~~~~~~~~~~ - +* Fixed equation in :py:func:`pvlib.iam.martin_ruiz` docstring (:issue:`1561`, :pull:`1599`) Benchmarking ~~~~~~~~~~~~~ @@ -48,3 +49,4 @@ Contributors * Marcus Boumans (:ghuser:`bowie2211`) * Karel De Brabandere (:ghuser:`kdebrab`) * Naman Priyadarshi (:ghuser:`Naman-Priyadarshi`) +* Echedey Luis (:ghuser:`echedey-ls`) diff --git a/pvlib/iam.py b/pvlib/iam.py index a8592f4036..885a12ccb1 100644 --- a/pvlib/iam.py +++ b/pvlib/iam.py @@ -227,7 +227,7 @@ def martin_ruiz(aoi, a_r=0.16): .. math:: - IAM = \frac{1 - \exp(-\cos(\frac{aoi}{a_r}))} + IAM = \frac{1 - \exp(-\frac{\cos(aoi)}{a_r})} {1 - \exp(\frac{-1}{a_r})} which is presented as :math:`AL(\alpha) = 1 - IAM` in equation 4 of [1]_, @@ -353,7 +353,6 @@ def martin_ruiz_diffuse(surface_tilt, a_r=0.16, c1=0.4244, c2=None): # avoid undefined results for horizontal or upside-down surfaces zeroang = 1e-06 - surface_tilt = np.where(surface_tilt == 0, zeroang, surface_tilt) surface_tilt = np.where(surface_tilt == 180, 180 - zeroang, surface_tilt)