Skip to content

Commit cd2041b

Browse files
author
Brandon Kirkland
committed
Disable bias correction in degenerate GMM test (#150)
N4 bias correction on uniform-intensity data introduces numerical variation that prevents the near-zero ptp guard from triggering. Disabling it ensures the test exercises the intended code path.
1 parent 47f1057 commit cd2041b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/test_threshold_mri.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ def test_classify_brain_degenerate_constant_intensity() -> None:
298298
classify_brain_tissues=True,
299299
air_threshold_quantile=0.0,
300300
skull_thickness_mm=7.0,
301+
bias_correction_sigma_mm=0.0,
301302
)
302303
result = seg._segment(volume)
303304
idx = seg._material_indices()

0 commit comments

Comments
 (0)