Skip to content

Commit d0a886c

Browse files
committed
🩹 signal.find_peaks: typo fix and some minor style fixes
1 parent 837377e commit d0a886c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎tests/signal/test_find_peaks.pyi‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ _, props_tps = find_peaks(data, threshold=cond, prominence=cond, plateau_size=co
218218
props_tps["peak_heights"] # type: ignore[typeddict-item] # pyright: ignore[reportGeneralTypeIssues] # pyrefly: ignore[typed-dict-key-error]
219219
assert_type(props_tps["left_thresholds"], _Float1D)
220220
assert_type(props_tps["prominences"], _Float1D)
221-
props_tps["widths"] # type: ignore[typeddict-item] # pyright: ignore[reportGeneralTypeIssues] # pyrefly: ignore[typed-dict-key-error]
221+
props_tps["widths"] # type: ignore[typeddict-item] # pyright: ignore[reportGeneralTypeIssues] # pyrefly: ignore[typed-dict-key-error]
222222
assert_type(props_tps["plateau_sizes"], _Int1D)
223223

224224
# {threshold, width, plateau_size}
@@ -253,7 +253,7 @@ _, props_htps = find_peaks(data, height=cond, threshold=cond, prominence=cond, p
253253
assert_type(props_htps["peak_heights"], _Float1D)
254254
assert_type(props_htps["left_thresholds"], _Float1D)
255255
assert_type(props_htps["prominences"], _Float1D)
256-
props_tps["widths"] # type: ignore[typeddict-item] # pyright: ignore[reportGeneralTypeIssues] # pyrefly: ignore[typed-dict-key-error]
256+
props_htps["widths"] # type: ignore[typeddict-item] # pyright: ignore[reportGeneralTypeIssues] # pyrefly: ignore[typed-dict-key-error]
257257
assert_type(props_htps["plateau_sizes"], _Int1D)
258258

259259
# {height, threshold, width, plateau_size}

0 commit comments

Comments
 (0)