Skip to content

Commit

Permalink
modified the mode loop
Browse files Browse the repository at this point in the history
  • Loading branch information
tgalvin committed Aug 15, 2024
1 parent 1f22f78 commit c0445fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flint/leakage.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ def extract_pol_stats_in_box(
pol_peak = None
pol_noise = None
pol_mean = None
for idx, box_size in enumerate((search_box_size, noise_box_size)):
# TODO: This loop should be reformed to allow iterating over something that defines the mode and box
for idx, box_size in enumerate((search_box_size, noise_box_size, noise_box_size)):
box_delta = int(np.ceil(box_size / 2))

y_edge_min = np.maximum(pixel_coords.y - box_delta, 0).astype(int)
Expand Down

0 comments on commit c0445fe

Please sign in to comment.