Skip to content

Commit ab841b1

Browse files
committed
Fix ambiguous variable name
1 parent 3cbc4ad commit ab841b1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pvlib/irradiance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -991,15 +991,15 @@ def reindl(surface_tilt, surface_azimuth, dhi, dni, ghi, dni_extra,
991991
HB = dni * cos_solar_zenith
992992
HB = np.maximum(HB, 0)
993993

994-
I = (1 + tools.cosd(surface_tilt)) / 2
994+
SVF = (1 + tools.cosd(surface_tilt)) / 2
995995

996996
with np.errstate(invalid='ignore', divide='ignore'):
997997
hb_to_ghi = np.where(ghi == 0, 0, np.divide(HB, ghi))
998998
h = np.sqrt(hb_to_ghi) * (tools.sind(surface_tilt / 2) ** 3)
999999

1000-
term1 = (1 - AI) * I
1000+
term1 = (1 - AI) * SVF
10011001
term2 = AI * Rb
1002-
term3 = (1 - AI) * I * h
1002+
term3 = (1 - AI) * SVF * h
10031003

10041004
sky_diffuse = dhi * (term1 + term2 + term3)
10051005

0 commit comments

Comments
 (0)