Skip to content

Commit

Permalink
bug fix for fit_amorphous_ring
Browse files Browse the repository at this point in the history
  • Loading branch information
smribet committed Jun 6, 2024
1 parent cc26505 commit 2e39852
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions py4DSTEM/process/polar/polar_fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,21 @@ def fit_amorphous_ring(
np.inf,
np.inf,
)
else:
lb = (0, 0, radial_range[0], radial_range[0], -np.inf, 0, 0, 0, 1, 1, 1)
ub = (
im.shape[0],
im.shape[1],
radial_range[1],
radial_range[1],
np.inf,
np.inf,
np.inf,
np.inf,
np.inf,
np.inf,
np.inf,
)

if show_fit_mask:
# show image preview of fitting mask
Expand Down

0 comments on commit 2e39852

Please sign in to comment.