Skip to content

Commit

Permalink
Allow numpy2
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Oct 22, 2024
1 parent 4aac40b commit 5049950
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openpmd_viewer/addons/pic/lpa_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ def get_spectrogram( self, t=None, iteration=None, pol=None,
T = tmax - tmin
dt = T / Nz
# Normalize the Envelope
env /= np.sqrt(np.trapz(env ** 2, dx=dt))
env /= np.sqrt(np.trapezoid(env ** 2, dx=dt))
# Allocate array for the gating function and the spectrogran
E_shift = np.zeros_like(E)
spectrogram = np.zeros((2 * Nz, Nz))
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy~=1.15
numpy>=1.15
scipy
h5py>=2.8.0
tqdm
Expand Down

0 comments on commit 5049950

Please sign in to comment.