Skip to content

Commit 861da05

Browse files
authored
Fix issue with window_length in reno clearsky detection (#221)
* fix bug * whatsnew
1 parent 9aef5b5 commit 861da05

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/whatsnew/v0.2.3.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Enhancements
1010

1111
Bug Fixes
1212
~~~~~~~~~
13-
13+
* :py:func:`pvanalytics.features.clearsky.reno` now correctly passes
14+
``window_length`` to the underlying pvlib function. (:pull:`221`)
1415

1516
Requirements
1617
~~~~~~~~~~~~

pvanalytics/features/clearsky.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def reno(ghi, ghi_clearsky):
7272
ghi,
7373
ghi_clearsky,
7474
ghi.index,
75-
window_length,
75+
window_length=window_length,
7676
lower_line_length=-5*scale_factor,
7777
upper_line_length=10*scale_factor,
7878
slope_dev=8*scale_factor

0 commit comments

Comments
 (0)