Skip to content

Commit 8b46a77

Browse files
committed
swap result for auto detection of skull
1 parent e460f6d commit 8b46a77

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)