Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rakowski committed Nov 15, 2023
1 parent 2481818 commit de42ddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py4DSTEM/process/calibration/ellipse.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def fit_ellipse_1D(ar, center=None, fitradii=None, mask=None):
rr = np.sqrt((xx - x0) ** 2 + (yy - y0) ** 2)
_mask = (rr > ri) * (rr <= ro)
if mask is not None:
_mask *= mask == False # noqa: E712
xs, ys = np.nonzero(_mask)
_mask *= mask == False # noqa: E712
xs, ys = np.nonzero(_mask)
vals = ar[_mask]

# Get initial parameters guess
Expand Down

0 comments on commit de42ddc

Please sign in to comment.