Skip to content

Commit 0eda545

Browse files
committed
index correctly
1 parent 9d64abe commit 0eda545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pvlib/clearsky.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ def _calc_stats(data, samples_per_window, sample_interval, H):
641641
def _slope_nstd_windowed(data, H, samples_per_window):
642642
with np.errstate(divide='ignore', invalid='ignore'):
643643
raw = np.diff(data)
644-
raw = raw[H[:-1, ]].std(ddof=1, axis=0) / data[H].mean(axis=0)
644+
raw = raw[H[:-1, ]].std(ddof=1, axis=0) / data.values[H].mean(axis=0)
645645
return _to_centered_series(raw, data.index, samples_per_window)
646646

647647

0 commit comments

Comments
 (0)