Skip to content

Commit 675a422

Browse files
committed
review
1 parent 504122b commit 675a422

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/sphinx/source/whatsnew/v0.11.3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Deprecations
1010

1111
Enhancements
1212
~~~~~~~~~~~~
13-
* :pyPfunc:`~pvlib.irradiance.gti_dirint` now raises an informative message
13+
* :py:func:`~pvlib.irradiance.gti_dirint` now raises an informative message
1414
when input data don't include values with AOI<90 (:issue:`1342`, :pull:`2347`)
1515

1616
Documentation

pvlib/irradiance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2408,7 +2408,7 @@ def _gti_dirint_check_input(aoi):
24082408
24092409
Raises Exceptions from input data that cause the algorithm to fail.
24102410
"""
2411-
if (aoi >= 90).all():
2411+
if not (aoi < 90).any():
24122412
raise ValueError("AOI >= 90 for all input data to gti_dirint. "
24132413
"gti_dirint requires some data with AOI < 90.")
24142414

0 commit comments

Comments
 (0)