Skip to content

Commit 4e7e788

Browse files
committed
Merge branch 'reindl-components' of https://github.com/cbcrespo/pvlib-python into reindl-components
2 parents 44bb240 + ab841b1 commit 4e7e788

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pvlib/irradiance.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,7 @@ def haydavies(surface_tilt, surface_azimuth, dhi, dni, dni_extra,
878878

879879
def reindl(surface_tilt, surface_azimuth, dhi, dni, ghi, dni_extra,
880880
solar_zenith, solar_azimuth, return_components=False):
881+
solar_zenith, solar_azimuth, return_components=False):
881882
r'''
882883
Determine the diffuse irradiance from the sky on a tilted surface using
883884
the Reindl (1990) model.
@@ -920,6 +921,10 @@ def reindl(surface_tilt, surface_azimuth, dhi, dni, ghi, dni_extra,
920921
Flag used to decide whether to return the calculated diffuse components
921922
or not.
922923
924+
return_components : bool, default False
925+
Flag used to decide whether to return the calculated diffuse components
926+
or not.
927+
923928
Returns
924929
-------
925930
numeric, Dict, or DataFrame
@@ -1000,6 +1005,8 @@ def reindl(surface_tilt, surface_azimuth, dhi, dni, ghi, dni_extra,
10001005

10011006
SVF = (1 + tools.cosd(surface_tilt)) / 2
10021007

1008+
SVF = (1 + tools.cosd(surface_tilt)) / 2
1009+
10031010
with np.errstate(invalid='ignore', divide='ignore'):
10041011
hb_to_ghi = np.where(ghi == 0, 0, np.divide(HB, ghi))
10051012
h = np.sqrt(hb_to_ghi) * (tools.sind(surface_tilt / 2) ** 3)

0 commit comments

Comments
 (0)