Skip to content

Commit

Permalink
[Bug] Decreased sensitivity of homogeneity checker
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0wxr committed Apr 15, 2024
1 parent c829ed1 commit d82a275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ def check_nifti_integrity() -> bool:
intensity_value_set = set(
np.unique(nib.load(nifti_fp).get_fdata().astype(np.uint8)), # type: ignore[attr-defined]
).union(intensity_value_set)
return intensity_value_set == class_idcs
return intensity_value_set.issubset(class_idcs)

homogeneity_state = check_class_names_integrity()
if not homogeneity_state:
Expand Down

0 comments on commit d82a275

Please sign in to comment.