We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89b04db commit ae6f55eCopy full SHA for ae6f55e
pyindicators/indicators/divergence.py
@@ -153,7 +153,8 @@ def detect_peaks(
153
data[f"{source_column}_highs"] = np.nan
154
data[f"{source_column}_lows"] = np.nan
155
156
- # Fix: Filter indices to ensure they're within bounds and convert to list
+ # Fix: Filter indices to ensure they're within bounds and
157
+ # convert to list
158
valid_hh_idx = [i for i in hh_idx if 0 <= i < len(data)]
159
valid_lh_idx = [i for i in lh_idx if 0 <= i < len(data)]
160
valid_ll_idx = [i for i in ll_idx if 0 <= i < len(data)]
0 commit comments