Skip to content

Commit

Permalink
filter_2D_maxima
Browse files Browse the repository at this point in the history
  • Loading branch information
smribet committed Nov 15, 2023
1 parent 76ae0fa commit 079d4b9
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 079d4b9

Please sign in to comment.