Skip to content

Commit

Permalink
C409 C405
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rakowski committed Nov 10, 2023
1 parent 7892191 commit 4288ca2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion py4DSTEM/process/calibration/ellipse.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def fit_ellipse_amorphous_ring(data, center, fitradii, p0=None, mask=None):
A, B, C = convert_ellipse_params_r(R, R, 0)

# Populate initial parameters
p0_guess = tuple([I0, I1, sigma0, sigma1, sigma2, c_bkgd, x0, y0, A, B, C])
p0_guess = (I0, I1, sigma0, sigma1, sigma2, c_bkgd, x0, y0, A, B, C)
if p0 is None:
_p0 = p0_guess
else:
Expand Down
4 changes: 2 additions & 2 deletions py4DSTEM/process/classification/braggvectorclassification.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ def get_initial_classes(
seed_new_class = True
while seed_new_class:
ind1, ind2 = np.unravel_index(np.argmax(n_point_function), (N, N))
BP_set = set([ind1, ind2])
BP_set = {ind1, ind2}
grow_class = True
while grow_class:
frequencies = np.zeros(N)
Expand Down Expand Up @@ -910,7 +910,7 @@ def get_initial_classes(
seed_new_class = True
while seed_new_class:
ind1, ind2, ind3 = np.unravel_index(np.argmax(n_point_function), (N, N, N))
BP_set = set([ind1, ind2, ind3])
BP_set = {ind1, ind2, ind3}
grow_class = True
while grow_class:
frequencies = np.zeros(N)
Expand Down

0 comments on commit 4288ca2

Please sign in to comment.