Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: invert result of skull-strip check in auto mode #402

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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