Skip to content

Commit 9045a48

Browse files
committed
Trim verbose comment in _delta_kt_prime_dirint (ponytail pass)
1 parent 969d39b commit 9045a48

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

pvlib/irradiance.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,12 +2035,8 @@ def _delta_kt_prime_dirint(kt_prime, use_delta_kt_prime, times):
20352035
for use with :py:func:`_dirint_bins`.
20362036
"""
20372037
if use_delta_kt_prime:
2038-
# Perez eqn 2 (interior points). Perez eqn 3 (boundary points and
2039-
# interior gaps where one neighbor is missing) is handled by taking
2040-
# the row-wise mean, which averages zero, one, or two valid neighbor
2041-
# differences because pandas skips NaN values. This avoids the
2042-
# previous behavior of halving a single valid difference when one
2043-
# neighbor is NaN (gh-1847).
2038+
# row-wise mean of neighbor abs-differences; pandas skips NaN so this
2039+
# covers 0/1/2 valid neighbors (Perez eqn 2 interior, eqn 3 boundary/gap)
20442040
kt_next = kt_prime.shift(-1)
20452041
kt_previous = kt_prime.shift(1)
20462042
delta_kt_prime = pd.DataFrame({

0 commit comments

Comments
 (0)