Skip to content

Commit e60fc96

Browse files
committed
lint
1 parent 4915df8 commit e60fc96

1 file changed

Lines changed: 19 additions & 10 deletions

File tree

pvlib/clearsky.py

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -820,20 +820,29 @@ def detect_clearsky(measured, clearsky, times=None, infer_limits=False,
820820

821821
# if infer_limits, find threshold values using the sample interval
822822
if infer_limits:
823-
window_length, mean_diff, max_diff, lower_line_length, \
824-
upper_line_length, var_diff, slope_dev = \
825-
_clearsky_get_threshold(sample_interval)
823+
(
824+
window_length,
825+
mean_diff,
826+
max_diff,
827+
lower_line_length,
828+
upper_line_length,
829+
var_diff,
830+
slope_dev,
831+
) = _clearsky_get_threshold(sample_interval)
826832

827833
# recalculate samples_per_window using returned window_length
828-
sample_interval, samples_per_window = \
829-
tools._get_sample_intervals(times, window_length)
834+
sample_interval, samples_per_window = tools._get_sample_intervals(
835+
times, window_length
836+
)
830837

831838
if samples_per_window < 3:
832-
raise ValueError(f"Samples per window of {samples_per_window}"
833-
" found. Each window must contain at least 3 data"
834-
" points."
835-
f" Window length of {window_length} found; increase"
836-
f" window length to {3*sample_interval} or longer.")
839+
raise ValueError(
840+
f"Samples per window of {samples_per_window}"
841+
" found. Each window must contain at least 3 data"
842+
" points."
843+
f" Window length of {window_length} found; increase"
844+
f" window length to {3 * sample_interval} or longer."
845+
)
837846

838847
# check that we have enough data to produce a nonempty hankel matrix
839848
if len(times) < samples_per_window:

0 commit comments

Comments
 (0)