@@ -239,27 +239,15 @@ def spectral_factor_firstsolar(precipitable_water, airmass_absolute,
239
239
"""
240
240
pw = np .atleast_1d (precipitable_water )
241
241
pw = pw .astype ('float64' )
242
- if np .min (pw ) < min_precipitable_water :
243
- pw = np .maximum (pw , min_precipitable_water )
244
- warn ('Low precipitable water values replaced with '
245
- f'{ min_precipitable_water } cm in the calculation of spectral '
246
- 'mismatch.' )
247
-
248
- if np .max (pw ) > max_precipitable_water :
249
- pw [pw > max_precipitable_water ] = np .nan
250
- warn ('High precipitable water values replaced with np.nan in '
251
- 'the calculation of spectral mismatch.' )
242
+ pw = np .maximum (pw , min_precipitable_water )
243
+ pw [pw > max_precipitable_water ] = np .nan
252
244
253
245
airmass_absolute = np .minimum (airmass_absolute , max_airmass_absolute )
254
-
255
- if np .min (airmass_absolute ) < min_airmass_absolute :
256
- airmass_absolute = np .maximum (airmass_absolute , min_airmass_absolute )
257
- warn ('Low airmass values replaced with ' f'{ min_airmass_absolute } in '
258
- 'the calculation of spectral mismatch.' )
259
- # pvlib.atmosphere.get_absolute_airmass(1,
260
- # pvlib.atmosphere.alt2pres(4340)) = 0.58 Elevation of
261
- # Mina Pirquita, Argentian = 4340 m. Highest elevation city with
262
- # population over 50,000.
246
+ # pvlib.atmosphere.get_absolute_airmass(1,
247
+ # pvlib.atmosphere.alt2pres(4340)) = 0.58 Elevation of
248
+ # Mina Pirquita, Argentian = 4340 m. Highest elevation city with
249
+ # population over 50,000.
250
+ airmass_absolute = np .maximum (airmass_absolute , min_airmass_absolute )
263
251
264
252
_coefficients = {}
265
253
_coefficients ['cdte' ] = (
0 commit comments