Skip to content

Commit cfbefa9

Browse files
committed
clean up error msg
1 parent 0e5cabc commit cfbefa9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pvlib/clearsky.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -813,10 +813,10 @@ def detect_clearsky(measured, clearsky, times=None, infer_limits=False,
813813
tools._get_sample_intervals(times, window_length)
814814

815815
if samples_per_window < 3:
816-
raise ValueError(f"window_length must contain at least"
816+
raise ValueError(f"Window of length {window_length} found"
817+
" Each window must contain at least"
817818
" three data points; {samples_per_window} results"
818-
" from time interval of {sample_interval} and"
819-
" window_length of {window_length}")
819+
" from time interval of {sample_interval}")
820820

821821
# if infer_limits, find threshold values using the sample interval
822822
if infer_limits:

0 commit comments

Comments
 (0)