From af0109ad48589d6f8e7d750cd5dc06f0c4f5a2c3 Mon Sep 17 00:00:00 2001 From: Georgios Varnavides Date: Fri, 15 Nov 2024 10:44:03 -0800 Subject: [PATCH] oops, direct ptycho viz bug --- py4DSTEM/process/phase/direct_ptychography.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py4DSTEM/process/phase/direct_ptychography.py b/py4DSTEM/process/phase/direct_ptychography.py index 6cc031614..317559040 100644 --- a/py4DSTEM/process/phase/direct_ptychography.py +++ b/py4DSTEM/process/phase/direct_ptychography.py @@ -649,7 +649,7 @@ def preprocess( self._reciprocal_sampling[0] * alpha_probe / self.angular_sampling[0] ) - bf_inds = f[self._trotter_inds[0], self._trotter_inds[1]] < q_probe + bf_inds = f[self._trotter_inds[0], self._trotter_inds[1]] < q_probe**2 low_ind_x = self._trotter_inds[0][bf_inds][0] low_ind_y = self._trotter_inds[1][bf_inds][0] high_ind_x = self._trotter_inds[0][~bf_inds][0]