Skip to content

Commit 4838d16

Browse files
committed
fix total_irrad perez
1 parent 60aa3cf commit 4838d16

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

pvlib/irradiance.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,16 +377,19 @@ def total_irrad(surface_tilt, surface_azimuth,
377377
if model == 'isotropic':
378378
sky = isotropic(surface_tilt, dhi)
379379
elif model == 'klutcher':
380-
sky = klucher(surface_tilt, surface_azimuth, dhi, ghi, solar_zenith, solar_azimuth)
380+
sky = klucher(surface_tilt, surface_azimuth, dhi, ghi,
381+
solar_zenith, solar_azimuth)
381382
elif model == 'haydavies':
382-
sky = haydavies(surface_tilt, surface_azimuth, dhi, dni, dni_extra, solar_zenith, solar_azimuth)
383+
sky = haydavies(surface_tilt, surface_azimuth, dhi, dni, dni_extra,
384+
solar_zenith, solar_azimuth)
383385
elif model == 'reindl':
384-
sky = reindl(surface_tilt, surface_azimuth, dhi, dni, ghi, dni_extra, solar_zenith,
385-
solar_azimuth)
386+
sky = reindl(surface_tilt, surface_azimuth, dhi, dni, ghi, dni_extra,
387+
solar_zenith, solar_azimuth)
386388
elif model == 'king':
387389
sky = king(surface_tilt, dhi, ghi, solar_zenith)
388390
elif model == 'perez':
389-
sky = perez(surface_tilt, surface_azimuth, dhi, dni, dni_extra, solar_zenith, solar_azimuth, AM,
391+
sky = perez(surface_tilt, surface_azimuth, dhi, dni, dni_extra,
392+
solar_zenith, solar_azimuth, airmass,
390393
modelt=model_perez)
391394
else:
392395
raise ValueError('invalid model selection {}'.format(model))

0 commit comments

Comments
 (0)