@@ -394,7 +394,7 @@ def total_irrad(surface_tilt, surface_azimuth,
394
394
elif model == 'perez' :
395
395
sky = perez (surface_tilt , surface_azimuth , dhi , dni , dni_extra ,
396
396
solar_zenith , solar_azimuth , airmass ,
397
- modelt = model_perez )
397
+ model = model_perez )
398
398
else :
399
399
raise ValueError ('invalid model selection {}' .format (model ))
400
400
@@ -965,7 +965,7 @@ def king(surface_tilt, dhi, ghi, solar_zenith):
965
965
966
966
def perez (surface_tilt , surface_azimuth , dhi , dni , dni_extra ,
967
967
solar_zenith , solar_azimuth , airmass ,
968
- modelt = 'allsitescomposite1990' ):
968
+ model = 'allsitescomposite1990' ):
969
969
'''
970
970
Determine diffuse irradiance from the sky on a tilted surface using
971
971
one of the Perez models.
@@ -1108,7 +1108,7 @@ def perez(surface_tilt, surface_azimuth, dhi, dni, dni_extra,
1108
1108
1109
1109
# The various possible sets of Perez coefficients are contained
1110
1110
# in a subfunction to clean up the code.
1111
- F1c , F2c = _get_perez_coefficients (modelt )
1111
+ F1c , F2c = _get_perez_coefficients (model )
1112
1112
1113
1113
F1 = (F1c [ebin , 0 ] + F1c [ebin , 1 ] * delta [ebin .index ] +
1114
1114
F1c [ebin , 2 ] * z [ebin .index ])
@@ -1140,14 +1140,14 @@ def perez(surface_tilt, surface_azimuth, dhi, dni, dni_extra,
1140
1140
return sky_diffuse
1141
1141
1142
1142
1143
- def _get_perez_coefficients (perezmodelt ):
1143
+ def _get_perez_coefficients (perezmodel ):
1144
1144
'''
1145
1145
Find coefficients for the Perez model
1146
1146
1147
1147
Parameters
1148
1148
----------
1149
1149
1150
- perezmodelt : string (optional, default='allsitescomposite1990')
1150
+ perezmodel : string (optional, default='allsitescomposite1990')
1151
1151
1152
1152
a character string which selects the desired set of Perez
1153
1153
coefficients. If model is not provided as an input, the default,
@@ -1296,7 +1296,7 @@ def _get_perez_coefficients(perezmodelt):
1296
1296
[1.4340 , - 3.9940 , - 0.4920 , 0.4530 , - 2.3760 , 0.1170 ],
1297
1297
[1.0070 , - 2.2920 , - 0.4820 , 0.3900 , - 3.3680 , 0.2290 ]], }
1298
1298
1299
- array = np .array (coeffdict [perezmodelt ])
1299
+ array = np .array (coeffdict [perezmodel ])
1300
1300
1301
1301
F1coeffs = array .T [0 :3 ].T
1302
1302
F2coeffs = array .T [3 :7 ].T
0 commit comments