Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
clara-escanuela committed Oct 26, 2023
1 parent aaca9a8 commit 5fd2a4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctapipe/image/cleaning.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,9 @@ def tailcuts_hysteresis_clean(
pixels_above_boundary & pixels_with_picture_neighbors
) | (pixels_in_picture & pixels_with_boundary_neighbors)

iteration = np.all(pixels_in_picture == pixels_in_picture_previous)
is_unchanged = np.all(pixels_in_picture == pixels_in_picture_previous)

if iteration:
if is_unchanged:
break

return pixels_in_picture
Expand Down

0 comments on commit 5fd2a4b

Please sign in to comment.