From 6c1d75968f712b1146dc6130ec0069a05993effd Mon Sep 17 00:00:00 2001 From: Georgios Varnavides Date: Tue, 8 Oct 2024 10:02:01 -0700 Subject: [PATCH] fine, this should work --- 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 8ea33dc41..0338b6684 100644 --- a/py4DSTEM/process/phase/direct_ptychography.py +++ b/py4DSTEM/process/phase/direct_ptychography.py @@ -541,7 +541,7 @@ def preprocess( / self.angular_sampling[0] ) - bf_inds = f[*trotter_inds] < q_probe + bf_inds = f[trotter_inds[0], trotter_inds[1]] < q_probe low_ind_x = trotter_inds[0][bf_inds][0] low_ind_y = trotter_inds[1][bf_inds][0] high_ind_x = trotter_inds[0][~bf_inds][0]