You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_image_outliers() lines 188–211 labels the comparison as the first member's high percentile, then computes an outlier statistic using all members'p_high values. A 95th percentile and a 99.8th percentile are different measurements and must not silently enter the same reference. Tests use manually constructed summaries but all with (1.0,99.8).
Minimal case
Generate 6 summary objects in one condition and repeat from identically distributed source pixels; store five image summaries with percentile=(1,95) and one with percentile=(1,99.8). intensity_checks treats these values as the same high-percentile statistic; it may flag the 99.8th image as an outlier even if no image-level technical change exists. If the 99.8th image sorts first, its percentile name also mislabels the 95th comparison for the rest. The exact flag depends on distribution and zero-MAD policy (#22).
Fix/acceptance
Validate the same percentile pair for all summaries in each comparison group (preferably globally, unless explicitly supporting separate cohorts); fail fast with paths, expected and observed thresholds. Do not reinterpret values or silently group by rounded threshold names. Test 95 vs 99.8, same thresholds, different low threshold, mixed groups, order independence, and direct summary inputs. If separate percentile cohorts are supported, prevent cross-cohort comparisons and report insufficient reference sizes. Benchmark negligible; Numba is inappropriate.
Activity
Refuse pooling image summaries with different percentile definitions