Skip to content

Commit

Permalink
BUG: .ptp() method no longer present in numpy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mhvk committed Aug 30, 2024
1 parent ef92532 commit 2545efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screens/conjspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def from_dynamic_spectrum(cls, dynspec, normalization='mean', **kwargs):
# TODO: relax this assumption.
if fd is None:
t_step = np.abs(np.diff(t, axis=-2)).min()
n_t = round((t.ptp()/t_step).to_value(1).item()) + 1
n_t = round((np.ptp(t)/t_step).to_value(1).item()) + 1
fd = np.fft.fftshift(np.fft.fftfreq(n_t, t_step).to(u.mHz))
fd = expand(fd, n=dynspec.ndim)
linear_axis = "transform"
Expand Down

0 comments on commit 2545efb

Please sign in to comment.