Skip to content

Commit 010caaa

Browse files
authored
ULTRA l1b small bug in stat cull (#3002)
* small bug * comment update
1 parent 03b86fa commit 010caaa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

imap_processing/ultra/l1b/ultra_l1b_culling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,9 +859,9 @@ def flag_statistical_outliers(
859859
good_mask = ~curr_mask[e_idx] # spin bins that are not currently flagged
860860
for it in range(n_iterations):
861861
counts = count_summary[e_idx, good_mask]
862-
# Step 1. check if any energy bins have less than 3 spin bins with counts.
862+
# Step 1. check if there are less than three valid counts.
863863
# If so, flag all spins for that energy bin and skip to the next iteration
864-
if np.sum(counts > 0) < 3:
864+
if len(counts) < 3:
865865
quality_stats[e_idx] = True
866866
curr_mask[e_idx] = True
867867
convergence[e_idx] = True

0 commit comments

Comments
 (0)