From a32080a1effda2ca0a571099b7497a987a5863f4 Mon Sep 17 00:00:00 2001 From: Steve Zeltmann Date: Thu, 22 Oct 2026 10:27:33 -0400 Subject: [PATCH] numpy 2.4 fix in bloch wave --- py4DSTEM/process/diffraction/crystal_bloch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py4DSTEM/process/diffraction/crystal_bloch.py b/py4DSTEM/process/diffraction/crystal_bloch.py index ce8bb8622..96c117494 100644 --- a/py4DSTEM/process/diffraction/crystal_bloch.py +++ b/py4DSTEM/process/diffraction/crystal_bloch.py @@ -412,7 +412,7 @@ def generate_dynamical_diffraction_pattern( t0 = time() psi_0 = np.zeros((n_beams,)) - psi_0[int(np.where((hkl == [0, 0, 0]).all(axis=1))[0])] = 1.0 + psi_0[int(np.where((hkl == [0, 0, 0]).all(axis=1))[0].item())] = 1.0 # calculate the diffraction intensities (and amplitudes) for each thichness matrix # I = |psi|^2 ; psi = C @ E(z) @ C^-1 @ psi_0, where E(z) is the thickness matrix