Skip to content

Commit 3b0dcdb

Browse files
authored
Merge pull request #402 from psadil/fix/reverse-skull-strip-check
FIX: invert result of skull-strip check in auto mode
2 parents e460f6d + 8b46a77 commit 3b0dcdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smriprep/workflows/anatomical.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ def init_anat_fit_wf(
795795
if not have_mask:
796796
LOGGER.info("ANAT Stage 2: Preparing brain extraction workflow")
797797
if skull_strip_mode == "auto":
798-
run_skull_strip = all(_is_skull_stripped(img) for img in t1w)
798+
run_skull_strip = not all(_is_skull_stripped(img) for img in t1w)
799799
else:
800800
run_skull_strip = {"force": True, "skip": False}[skull_strip_mode]
801801

0 commit comments

Comments
 (0)