Skip to content

Commit

Permalink
Improve compatibility with Numpy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobachetti committed Jan 11, 2024
1 parent ee47f7e commit 88468da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stingray/pulse/overlapandsave/ols.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def prepareh(h, nfft: List[int], rfftn=None):
The FFT-transformed, conjugate filter array
"""
rfftn = rfftn or np.fft.rfftn
return np.conj(rfftn(flip(np.conj(h)), nfft))
return np.conj(rfftn(flip(np.conj(h)), nfft, axes=np.arange(len(nfft))))


def slice2range(s: slice):
Expand Down

0 comments on commit 88468da

Please sign in to comment.