Skip to content

Fix error in the irradiance unit checker. #844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pvlib/pvsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1678,7 +1678,7 @@ def sapm(effective_irradiance, temp_cell, module):
irrad_ref = 1000
# TODO: remove this warning in v0.8 after deprecation period for change in
# effective irradiance units, made in v0.7
if np.all(effective_irradiance) < 2.0:
if np.all(effective_irradiance < 2.0):
import warnings
warnings.warn('effective_irradiance inputs appear to be in suns.'
' Units changed in v0.7 from suns to W/m2',
Expand Down