Skip to content

Commit b904819

Browse files
authored
Merge pull request #293 from janezd/np-ptp
Fix Numpy 2.0 compatibility: Replace ndarray.ptp with np.ptp
2 parents 943856f + 6261528 commit b904819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orangecontrib/timeseries/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _significant_periods(periods, pgram):
6868
periods = periods[::-1]
6969
pgram = pgram[::-1]
7070
# Scale and extract significant
71-
pgram = (pgram - pgram.min()) / pgram.ptp()
71+
pgram = (pgram - pgram.min()) / np.ptp(pgram)
7272
significant = argrelextrema(pgram, np.greater, order=5)
7373
return periods[significant], pgram[significant]
7474

0 commit comments

Comments
 (0)