@@ -377,16 +377,19 @@ def total_irrad(surface_tilt, surface_azimuth,
377
377
if model == 'isotropic' :
378
378
sky = isotropic (surface_tilt , dhi )
379
379
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 )
381
382
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 )
383
385
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 )
386
388
elif model == 'king' :
387
389
sky = king (surface_tilt , dhi , ghi , solar_zenith )
388
390
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 ,
390
393
modelt = model_perez )
391
394
else :
392
395
raise ValueError ('invalid model selection {}' .format (model ))
0 commit comments