Skip to content

Commit 8cc8db2

Browse files
authored
Merge pull request #407 from nipreps/mnt/rm-deprecations
MAINT: Remove deprecated parser arguments
2 parents 45655b8 + 278126e commit 8cc8db2

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

nibabies/cli/parser.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ def _build_parser():
2626

2727
deprecations = {
2828
# parser attribute name: (replacement flag, version slated to be removed in)
29-
'bold2t1w_init': ('--bold2anat-init', '24.2.0'),
30-
'bold2t1w_dof': ('--bold2anat-dof', '24.2.0'),
31-
'force_reconall': ('--surface-recon-method freesurfer', '24.2.0'),
32-
'fs_no_reconall': ('--surface-recon-method none', '24.2.0'),
3329
}
3430

3531
class DeprecatedAction(Action):
@@ -393,19 +389,6 @@ def _str_none(val):
393389
Useful for further Tedana processing post-NiBabies.""",
394390
)
395391

396-
g_conf.add_argument(
397-
'--bold2t1w-init',
398-
action=DeprecatedAction,
399-
choices=['register', 'header'],
400-
help='Deprecated - use `--bold2anat-init` instead.',
401-
)
402-
g_conf.add_argument(
403-
'--bold2t1w-dof',
404-
action=DeprecatedAction,
405-
choices=[6, 9, 12],
406-
type=int,
407-
help='Deprecated - use `--bold2anat-dof` instead.',
408-
)
409392
g_conf.add_argument(
410393
'--bold2anat-init',
411394
choices=['auto', 't1w', 't2w', 'header'],
@@ -624,12 +607,6 @@ def _str_none(val):
624607
'Optionally, the number of grayordinate can be specified '
625608
'(default is 91k, which equates to 2mm resolution)',
626609
)
627-
g_surfs_xor.add_argument(
628-
'--fs-no-reconall',
629-
action=DeprecatedAction,
630-
dest='run_reconall',
631-
help='Deprecated - use `--surface-recon-method none` instead.',
632-
)
633610

634611
g_other = parser.add_argument_group('Other options')
635612
g_other.add_argument(
@@ -754,12 +731,6 @@ def _str_none(val):
754731
metavar='FILE',
755732
help='A JSON file for customizing the derivatives queries.',
756733
)
757-
g_baby.add_argument(
758-
'--force-reconall',
759-
default=False,
760-
action=DeprecatedAction,
761-
help='Deprecated - use `--surface-recon-method freesurfer` instead.',
762-
)
763734
g_baby.add_argument(
764735
'--surface-recon-method',
765736
choices=('auto', 'infantfs', 'freesurfer', 'mcribs', None),

0 commit comments

Comments
 (0)