Skip to content

Commit 5049950

Browse files
committed
Allow numpy2
1 parent 4aac40b commit 5049950

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openpmd_viewer/addons/pic/lpa_diagnostics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ def get_spectrogram( self, t=None, iteration=None, pol=None,
10411041
T = tmax - tmin
10421042
dt = T / Nz
10431043
# Normalize the Envelope
1044-
env /= np.sqrt(np.trapz(env ** 2, dx=dt))
1044+
env /= np.sqrt(np.trapezoid(env ** 2, dx=dt))
10451045
# Allocate array for the gating function and the spectrogran
10461046
E_shift = np.zeros_like(E)
10471047
spectrogram = np.zeros((2 * Nz, Nz))

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
numpy~=1.15
1+
numpy>=1.15
22
scipy
33
h5py>=2.8.0
44
tqdm

0 commit comments

Comments
 (0)