From a51594c80b9c22344760ab287b3d8f2a36492cb0 Mon Sep 17 00:00:00 2001 From: Stephanie Ribet Date: Thu, 2 Nov 2023 11:56:39 -0700 Subject: [PATCH] one more bug fix --- py4DSTEM/process/phase/iterative_multislice_ptychography.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py4DSTEM/process/phase/iterative_multislice_ptychography.py b/py4DSTEM/process/phase/iterative_multislice_ptychography.py index 4b0d6881c..764f0b4a0 100644 --- a/py4DSTEM/process/phase/iterative_multislice_ptychography.py +++ b/py4DSTEM/process/phase/iterative_multislice_ptychography.py @@ -3004,7 +3004,7 @@ def show_slices( cmap = kwargs.pop("cmap", "magma") if common_color_scale: - vals = np.sort(rotated_object.mean(0).ravel()) + vals = np.sort(rotated_object.ravel()) ind_vmin = np.round((vals.shape[0] - 1) * 0.02).astype("int") ind_vmax = np.round((vals.shape[0] - 1) * 0.98).astype("int") ind_vmin = np.max([0, ind_vmin])