From 891a046f1800a4b1d689ce3f01b525a14c0dba4f Mon Sep 17 00:00:00 2001 From: Stephanie Ribet Date: Sun, 1 Sep 2024 12:57:35 -0700 Subject: [PATCH] randomize order bug --- py4DSTEM/tomography/tomography.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/py4DSTEM/tomography/tomography.py b/py4DSTEM/tomography/tomography.py index c49ae19c5..8d3f25ead 100644 --- a/py4DSTEM/tomography/tomography.py +++ b/py4DSTEM/tomography/tomography.py @@ -250,7 +250,8 @@ def reconstruct( disable=not progress_bar, ): error_iteration = 0 - random_tilt_order = np.random.shuffle(np.arange(self._num_datacubes)) + random_tilt_order = np.arange(self._num_datacubes) + np.random.shuffle(random_tilt_order) for a1 in range(self._num_datacubes): a1_shuffle = random_tilt_order[a1]