@@ -39,8 +39,7 @@ class _RemoveDummyVolumesInputSpec(BaseInterfaceInputSpec):
3939 None ,
4040 mandatory = False ,
4141 desc = (
42- 'TSV file with selected confounds for denoising. '
43- 'May be None if denoising is disabled.'
42+ 'TSV file with selected confounds for denoising. May be None if denoising is disabled.'
4443 ),
4544 )
4645 confounds_images = traits .Either (
@@ -71,8 +70,7 @@ class _RemoveDummyVolumesOutputSpec(TraitedSpec):
7170 File (exists = True ),
7271 None ,
7372 desc = (
74- 'TSV file with selected confounds for denoising. '
75- 'May be None if denoising is disabled.'
73+ 'TSV file with selected confounds for denoising. May be None if denoising is disabled.'
7674 ),
7775 )
7876 confounds_images_dropped_TR = traits .Either (
@@ -386,8 +384,7 @@ def _run_interface(self, runtime):
386384 censoring_df .loc [random_censor , column_name ] = 0
387385 temporal_mask_metadata [column_name ] = {
388386 'Description' : (
389- f'Randomly selected low-motion volumes to retain exactly { exact_scan } '
390- 'volumes.'
387+ f'Randomly selected low-motion volumes to retain exactly { exact_scan } volumes.'
391388 ),
392389 'Levels' : {
393390 '0' : 'Retained or high-motion volume' ,
@@ -905,9 +902,9 @@ def _run_interface(self, runtime):
905902 signal_regressors = [c for c in new_confound_df .columns if c .startswith ('signal__' )]
906903 if signal_regressors :
907904 LOGGER .warning (
908- " Signal regressors detected. "
909- " Orthogonalizing nuisance regressors w.r.t. the following signal regressors: "
910- f" { ', ' .join (signal_regressors )} "
905+ ' Signal regressors detected. '
906+ ' Orthogonalizing nuisance regressors w.r.t. the following signal regressors: '
907+ f' { ", " .join (signal_regressors )} '
911908 )
912909 noise_regressors = [c for c in new_confound_df .columns if not c .startswith ('signal__' )]
913910
@@ -936,15 +933,15 @@ def _run_interface(self, runtime):
936933 for col in noise_regressors :
937934 desc_str = (
938935 "This regressor is orthogonalized with respect to the 'signal' regressors "
939- f"( { ', ' .join (signal_regressors )} ) after dummy scan removal, "
940- " but prior to any censoring."
936+ f'( { ", " .join (signal_regressors )} ) after dummy scan removal, '
937+ ' but prior to any censoring.'
941938 )
942939
943940 col_metadata = {}
944941 if col in confounds_metadata .keys ():
945942 col_metadata = confounds_metadata .pop (col )
946943 if 'Description' in col_metadata .keys ():
947- desc_str = f" { col_metadata [' Description' ]} { desc_str } "
944+ desc_str = f' { col_metadata [" Description" ]} { desc_str } '
948945
949946 col_metadata ['Description' ] = desc_str
950947 confounds_metadata [f'{ col } _orth' ] = col_metadata
0 commit comments