@@ -32,8 +32,8 @@ class DeprecatedAction(Action):
3232 def __call__ (self , parser , namespace , values , option_string = None ):
3333 new_opt , rem_vers = deprecations .get (self .dest , (None , None ))
3434 msg = (
35- f" { self .option_strings } has been deprecated and will be removed in "
36- f" { rem_vers or ' a later version' } ."
35+ f' { self .option_strings } has been deprecated and will be removed in '
36+ f' { rem_vers or " a later version" } .'
3737 )
3838 if new_opt :
3939 msg += f' Please use `{ new_opt } ` instead.'
@@ -140,7 +140,7 @@ def _slice_time_ref(value, parser):
140140 value = float (value )
141141 except ValueError as e :
142142 raise parser .error (
143- "Slice time reference must be number, 'start', or 'middle'. " f' Received { value } .'
143+ f "Slice time reference must be number, 'start', or 'middle'. Received { value } ."
144144 ) from e
145145 if not 0 <= value <= 1 :
146146 raise parser .error (f'Slice time reference must be in range 0-1. Received { value } .' )
@@ -182,7 +182,7 @@ def _str_none(val):
182182 'output_dir' ,
183183 action = 'store' ,
184184 type = Path ,
185- help = 'the output path for the outcomes of preprocessing and visual ' ' reports' ,
185+ help = 'the output path for the outcomes of preprocessing and visual reports' ,
186186 )
187187 parser .add_argument (
188188 'analysis_level' ,
@@ -297,7 +297,7 @@ def _str_none(val):
297297 g_perfm .add_argument (
298298 '--low-mem' ,
299299 action = 'store_true' ,
300- help = 'attempt to reduce memory usage (will increase disk usage ' ' in working directory)' ,
300+ help = 'attempt to reduce memory usage (will increase disk usage in working directory)' ,
301301 )
302302 g_perfm .add_argument (
303303 '--use-plugin' ,
@@ -497,8 +497,7 @@ def _str_none(val):
497497 action = 'store' ,
498498 default = 0.5 ,
499499 type = float ,
500- help = 'Threshold for flagging a frame as an outlier on the basis of framewise '
501- 'displacement' ,
500+ help = 'Threshold for flagging a frame as an outlier on the basis of framewise displacement' ,
502501 )
503502 g_confounds .add_argument (
504503 '--dvars-spike-threshold' ,
@@ -507,7 +506,7 @@ def _str_none(val):
507506 action = 'store' ,
508507 default = 1.5 ,
509508 type = float ,
510- help = 'Threshold for flagging a frame as an outlier on the basis of standardised ' ' DVARS' ,
509+ help = 'Threshold for flagging a frame as an outlier on the basis of standardised DVARS' ,
511510 )
512511
513512 # ANTs options
@@ -657,7 +656,7 @@ def _str_none(val):
657656 '--stop-on-first-crash' ,
658657 action = 'store_true' ,
659658 default = False ,
660- help = 'Force stopping on first crash, even if a work directory' ' was specified.' ,
659+ help = 'Force stopping on first crash, even if a work directory was specified.' ,
661660 )
662661 g_other .add_argument (
663662 '--notrack' ,
@@ -875,8 +874,7 @@ def parse_args(args=None, namespace=None):
875874 from ..utils .bids import validate_input_dir
876875
877876 build_log .info (
878- 'Making sure the input data is BIDS compliant (warnings can be ignored in most '
879- 'cases).'
877+ 'Making sure the input data is BIDS compliant (warnings can be ignored in most cases).'
880878 )
881879 validate_input_dir (config .environment .exec_env , opts .bids_dir , opts .participant_label )
882880
@@ -896,8 +894,8 @@ def parse_args(args=None, namespace=None):
896894 missing_subjects = participant_label - set (all_subjects )
897895 if missing_subjects :
898896 parser .error (
899- " One or more participant labels were not found in the BIDS directory: "
900- f" { ', ' .join (missing_subjects )} ."
897+ ' One or more participant labels were not found in the BIDS directory: '
898+ f' { ", " .join (missing_subjects )} .'
901899 )
902900
903901 config .execution .participant_label = sorted (participant_label )
0 commit comments