From 278126e62dbb9a6a5afdb03c58daa32c2b107340 Mon Sep 17 00:00:00 2001 From: mathiasg Date: Fri, 4 Oct 2024 15:57:27 -0400 Subject: [PATCH] MAINT: Remove deprecated parser arguments --- nibabies/cli/parser.py | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/nibabies/cli/parser.py b/nibabies/cli/parser.py index 572f7f60..9e0d0165 100644 --- a/nibabies/cli/parser.py +++ b/nibabies/cli/parser.py @@ -26,10 +26,6 @@ def _build_parser(): deprecations = { # parser attribute name: (replacement flag, version slated to be removed in) - 'bold2t1w_init': ('--bold2anat-init', '24.2.0'), - 'bold2t1w_dof': ('--bold2anat-dof', '24.2.0'), - 'force_reconall': ('--surface-recon-method freesurfer', '24.2.0'), - 'fs_no_reconall': ('--surface-recon-method none', '24.2.0'), } class DeprecatedAction(Action): @@ -393,19 +389,6 @@ def _str_none(val): Useful for further Tedana processing post-NiBabies.""", ) - g_conf.add_argument( - '--bold2t1w-init', - action=DeprecatedAction, - choices=['register', 'header'], - help='Deprecated - use `--bold2anat-init` instead.', - ) - g_conf.add_argument( - '--bold2t1w-dof', - action=DeprecatedAction, - choices=[6, 9, 12], - type=int, - help='Deprecated - use `--bold2anat-dof` instead.', - ) g_conf.add_argument( '--bold2anat-init', choices=['auto', 't1w', 't2w', 'header'], @@ -624,12 +607,6 @@ def _str_none(val): 'Optionally, the number of grayordinate can be specified ' '(default is 91k, which equates to 2mm resolution)', ) - g_surfs_xor.add_argument( - '--fs-no-reconall', - action=DeprecatedAction, - dest='run_reconall', - help='Deprecated - use `--surface-recon-method none` instead.', - ) g_other = parser.add_argument_group('Other options') g_other.add_argument( @@ -754,12 +731,6 @@ def _str_none(val): metavar='FILE', help='A JSON file for customizing the derivatives queries.', ) - g_baby.add_argument( - '--force-reconall', - default=False, - action=DeprecatedAction, - help='Deprecated - use `--surface-recon-method freesurfer` instead.', - ) g_baby.add_argument( '--surface-recon-method', choices=('auto', 'infantfs', 'freesurfer', 'mcribs', None),