Skip to content

Commit cd87e25

Browse files
committed
FIX: Purge --anat-modality
1 parent 12ca297 commit cd87e25

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ usage: nibabies [-h] [--version] [--skip_bids_validation]
6161
[--reports-only] [--config-file FILE] [--write-graph]
6262
[--stop-on-first-crash] [--notrack]
6363
[--debug {compcor,registration,fieldmaps,all} [{compcor,registration,fieldmaps,all} ...]]
64-
[--sloppy] [--anat-modality {t1w,t2w}]
64+
[--sloppy]
6565
[--age-months AGE_MONTHS]
6666
[--segmentation-atlases-dir SEGMENTATION_ATLASES_DIR]
6767
[--ants-affine-init {random,search}]

nibabies/cli/parser.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -584,12 +584,6 @@ def _bids_filter(value):
584584

585585
# Add new options
586586
g_baby = parser.add_argument_group("NiBabies specific options")
587-
g_baby.add_argument(
588-
"--anat-modality",
589-
default="t1w",
590-
choices=("t1w", "t2w"),
591-
help="Preferred modality to use for anatomical processing",
592-
)
593587
g_baby.add_argument(
594588
"--age-months",
595589
dest="age_months",

nibabies/workflows/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def init_single_subject_wf(subject_id):
152152

153153
anat_only = config.workflow.anat_only
154154
anat_derivatives = config.execution.anat_derivatives
155-
anat_modality = config.workflow.anat_modality
155+
anat_modality = "t1w" if subject_data["t1w"] else "t2w"
156156
spaces = config.workflow.spaces
157157
# Make sure we always go through these two checks
158158
if not anat_only and not subject_data["bold"]:

0 commit comments

Comments
 (0)