Skip to content

Commit d82a275

Browse files
committed
[Bug] Decreased sensitivity of homogeneity checker
1 parent c829ed1 commit d82a275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ def check_nifti_integrity() -> bool:
683683
intensity_value_set = set(
684684
np.unique(nib.load(nifti_fp).get_fdata().astype(np.uint8)), # type: ignore[attr-defined]
685685
).union(intensity_value_set)
686-
return intensity_value_set == class_idcs
686+
return intensity_value_set.issubset(class_idcs)
687687

688688
homogeneity_state = check_class_names_integrity()
689689
if not homogeneity_state:

0 commit comments

Comments
 (0)