We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c829ed1 commit d82a275Copy full SHA for d82a275
python/main.py
@@ -683,7 +683,7 @@ def check_nifti_integrity() -> bool:
683
intensity_value_set = set(
684
np.unique(nib.load(nifti_fp).get_fdata().astype(np.uint8)), # type: ignore[attr-defined]
685
).union(intensity_value_set)
686
- return intensity_value_set == class_idcs
+ return intensity_value_set.issubset(class_idcs)
687
688
homogeneity_state = check_class_names_integrity()
689
if not homogeneity_state:
0 commit comments