Skip to content

Commit 7ff8421

Browse files
dzimmanckwholmgren
authored andcommitted
Fix error in the irradiance unit checker. (#844)
1 parent 66c8b3f commit 7ff8421

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pvlib/pvsystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,7 @@ def sapm(effective_irradiance, temp_cell, module):
16781678
irrad_ref = 1000
16791679
# TODO: remove this warning in v0.8 after deprecation period for change in
16801680
# effective irradiance units, made in v0.7
1681-
if np.all(effective_irradiance) < 2.0:
1681+
if np.all(effective_irradiance < 2.0):
16821682
import warnings
16831683
warnings.warn('effective_irradiance inputs appear to be in suns.'
16841684
' Units changed in v0.7 from suns to W/m2',

0 commit comments

Comments
 (0)