Skip to content

Commit

Permalink
numpy indexing changed?
Browse files Browse the repository at this point in the history
  • Loading branch information
gvarnavi committed Oct 8, 2024
1 parent 52d29a8 commit 20d8359
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions py4DSTEM/process/phase/direct_ptychography.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,10 +540,10 @@ def preprocess(
* self._semiangle_cutoff
/ self.angular_sampling[0]
)
low_ind_x = trotter_inds[0][(f[*trotter_inds] < q_probe)][0]
low_ind_y = trotter_inds[1][(f[*trotter_inds] < q_probe)][0]
high_ind_x = trotter_inds[0][(f[*trotter_inds] > q_probe)][0]
high_ind_y = trotter_inds[1][(f[*trotter_inds] > q_probe)][0]
low_ind_x = trotter_inds[0][f[*trotter_inds] < q_probe][0]
low_ind_y = trotter_inds[1][f[*trotter_inds] < q_probe][0]
high_ind_x = trotter_inds[0][f[*trotter_inds] > q_probe][0]
high_ind_y = trotter_inds[1][f[*trotter_inds] > q_probe][0]

figsize = kwargs.pop("figsize", (13, 4))
chroma_boost = kwargs.pop("chroma_boost", 1)
Expand Down

0 comments on commit 20d8359

Please sign in to comment.