We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03b86fa commit 010caaaCopy full SHA for 010caaa
1 file changed
imap_processing/ultra/l1b/ultra_l1b_culling.py
@@ -859,9 +859,9 @@ def flag_statistical_outliers(
859
good_mask = ~curr_mask[e_idx] # spin bins that are not currently flagged
860
for it in range(n_iterations):
861
counts = count_summary[e_idx, good_mask]
862
- # Step 1. check if any energy bins have less than 3 spin bins with counts.
+ # Step 1. check if there are less than three valid counts.
863
# If so, flag all spins for that energy bin and skip to the next iteration
864
- if np.sum(counts > 0) < 3:
+ if len(counts) < 3:
865
quality_stats[e_idx] = True
866
curr_mask[e_idx] = True
867
convergence[e_idx] = True
0 commit comments