Skip to content

Commit

Permalink
Merge pull request #568 from smribet/dev
Browse files Browse the repository at this point in the history
filter_2D_maxima hot fix
  • Loading branch information
bsavitzky authored Nov 16, 2023
2 parents 2a0e986 + 079d4b9 commit 08eb7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py4DSTEM/preprocess/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def filter_2D_maxima(
if minSpacing > 0:
deletemask = np.zeros(len(maxima), dtype=bool)
for i in range(len(maxima)):
if deletemask[i] is False:
if deletemask[i] == False:
tooClose = (
(maxima["x"] - maxima["x"][i]) ** 2
+ (maxima["y"] - maxima["y"][i]) ** 2
Expand Down

0 comments on commit 08eb7c6

Please sign in to comment.