Skip to content

Commit ae6f55e

Browse files
committed
Fix flake8 warnings
1 parent 89b04db commit ae6f55e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyindicators/indicators/divergence.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ def detect_peaks(
153153
data[f"{source_column}_highs"] = np.nan
154154
data[f"{source_column}_lows"] = np.nan
155155

156-
# Fix: Filter indices to ensure they're within bounds and convert to list
156+
# Fix: Filter indices to ensure they're within bounds and
157+
# convert to list
157158
valid_hh_idx = [i for i in hh_idx if 0 <= i < len(data)]
158159
valid_lh_idx = [i for i in lh_idx if 0 <= i < len(data)]
159160
valid_ll_idx = [i for i in ll_idx if 0 <= i < len(data)]

0 commit comments

Comments
 (0)