@@ -471,10 +471,8 @@ def sapm_celltemp(self, poa_global, temp_air, wind_speed):
471471 numeric, values in degrees C.
472472 """
473473 # warn user about change in default behavior in 0.9.
474- if (
475- self .temperature_model_parameters == {} and
476- self .module_type is None and self .racking_model is None
477- ):
474+ if (self .temperature_model_parameters == {} and self .module_type
475+ is None and self .racking_model is None ):
478476 warnings .warn (
479477 'temperature_model_parameters, racking_model, and module_type '
480478 'are not specified. Reverting to deprecated default: SAPM '
@@ -2162,17 +2160,17 @@ def i_from_v(resistance_shunt, resistance_series, nNsVth, voltage,
21622160 # equation for the diode voltage V_d then backing out voltage
21632161 args = (voltage , photocurrent , saturation_current , resistance_series ,
21642162 resistance_shunt , nNsVth )
2165- I = _singlediode .bishop88_i_from_v (* args , method = method .lower ())
2163+ current = _singlediode .bishop88_i_from_v (* args , method = method .lower ())
21662164 # find the right size and shape for returns
21672165 size , shape = _singlediode ._get_size_and_shape (args )
21682166 if size <= 1 :
21692167 if shape is not None :
2170- I = np .tile (I , shape )
2171- if np .isnan (I ).any () and size <= 1 :
2172- I = np .repeat (I , size )
2168+ current = np .tile (current , shape )
2169+ if np .isnan (current ).any () and size <= 1 :
2170+ current = np .repeat (current , size )
21732171 if shape is not None :
2174- I = I .reshape (shape )
2175- return I
2172+ current = current .reshape (shape )
2173+ return current
21762174
21772175
21782176def scale_voltage_current_power (data , voltage = 1 , current = 1 ):
@@ -2251,7 +2249,7 @@ def pvwatts_dc(g_poa_effective, temp_cell, pdc0, gamma_pdc, temp_ref=25.):
22512249 .. [1] A. P. Dobos, "PVWatts Version 5 Manual"
22522250 http://pvwatts.nrel.gov/downloads/pvwattsv5.pdf
22532251 (2014).
2254- """
2252+ """ # noqa: E501
22552253
22562254 pdc = (g_poa_effective * 0.001 * pdc0 *
22572255 (1 + gamma_pdc * (temp_cell - temp_ref )))
0 commit comments