Skip to content

Commit

Permalink
Merge pull request #402 from psadil/fix/reverse-skull-strip-check
Browse files Browse the repository at this point in the history
FIX: invert result of skull-strip check in auto mode
  • Loading branch information
effigies authored Nov 29, 2023
2 parents e460f6d + 8b46a77 commit 3b0dcdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smriprep/workflows/anatomical.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ def init_anat_fit_wf(
if not have_mask:
LOGGER.info("ANAT Stage 2: Preparing brain extraction workflow")
if skull_strip_mode == "auto":
run_skull_strip = all(_is_skull_stripped(img) for img in t1w)
run_skull_strip = not all(_is_skull_stripped(img) for img in t1w)
else:
run_skull_strip = {"force": True, "skip": False}[skull_strip_mode]

Expand Down

0 comments on commit 3b0dcdb

Please sign in to comment.