Skip to content

Commit

Permalink
randomize order bug
Browse files Browse the repository at this point in the history
  • Loading branch information
smribet committed Sep 1, 2024
1 parent 032cc42 commit 891a046
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py4DSTEM/tomography/tomography.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 891a046

Please sign in to comment.