Skip to content

Commit 2363fd2

Browse files
STY: apply ruff/flake8-implicit-str-concat rule ISC003
ISC003 Explicitly concatenated string should be implicitly concatenated
1 parent 809f811 commit 2363fd2

File tree

5 files changed

+30
-38
lines changed

5 files changed

+30
-38
lines changed

nipype/interfaces/freesurfer/model.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,9 +1468,8 @@ class Label2LabelInputSpec(FSTraitedSpec):
14681468
desc="Registration method",
14691469
)
14701470
copy_inputs = traits.Bool(
1471-
desc="If running as a node, set this to True."
1472-
+ "This will copy the input files to the node "
1473-
+ "directory."
1471+
desc="If running as a node, set this to True. "
1472+
"This will copy the input files to the node directory."
14741473
)
14751474

14761475

nipype/interfaces/freesurfer/preprocess.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2644,20 +2644,20 @@ class MNIBiasCorrectionInputSpec(FSTraitedSpec):
26442644
hash_files=False,
26452645
keep_extension=True,
26462646
desc="output volume. Output can be any format accepted by mri_convert. "
2647-
+ "If the output format is COR, then the directory must exist.",
2647+
"If the output format is COR, then the directory must exist.",
26482648
)
26492649
iterations = traits.Int(
26502650
4,
26512651
usedefault=True,
26522652
argstr="--n %d",
26532653
desc="Number of iterations to run nu_correct. Default is 4. This is the number of times "
2654-
+ "that nu_correct is repeated (ie, using the output from the previous run as the input for "
2655-
+ "the next). This is different than the -iterations option to nu_correct.",
2654+
"that nu_correct is repeated (ie, using the output from the previous run as the input for "
2655+
"the next). This is different than the -iterations option to nu_correct.",
26562656
)
26572657
protocol_iterations = traits.Int(
26582658
argstr="--proto-iters %d",
26592659
desc="Passes Np as argument of the -iterations flag of nu_correct. This is different "
2660-
+ "than the --n flag above. Default is not to pass nu_correct the -iterations flag.",
2660+
"than the --n flag above. Default is not to pass nu_correct the -iterations flag.",
26612661
)
26622662
distance = traits.Int(argstr="--distance %d", desc="N3 -distance option")
26632663
no_rescale = traits.Bool(
@@ -3166,8 +3166,8 @@ class MRIsCALabelInputSpec(FSTraitedSpecOpenMP):
31663166
seed = traits.Int(argstr="-seed %d", desc="")
31673167
copy_inputs = traits.Bool(
31683168
desc="Copies implicit inputs to node directory "
3169-
+ "and creates a temp subjects_directory. "
3170-
+ "Use this when running as a node"
3169+
"and creates a temp subjects_directory. "
3170+
"Use this when running as a node"
31713171
)
31723172

31733173

@@ -3285,9 +3285,8 @@ class SegmentCCInputSpec(FSTraitedSpec):
32853285
desc="Subject name",
32863286
)
32873287
copy_inputs = traits.Bool(
3288-
desc="If running as a node, set this to True."
3289-
+ "This will copy the input files to the node "
3290-
+ "directory."
3288+
desc="If running as a node, set this to True. "
3289+
"This will copy the input files to the node directory."
32913290
)
32923291

32933292

nipype/interfaces/freesurfer/registration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ class RegisterInputSpec(FSTraitedSpec):
251251
mandatory=True,
252252
position=-2,
253253
desc="The data to register to. In normal recon-all usage, "
254-
+ "this is a template file for average surface.",
254+
"this is a template file for average surface.",
255255
)
256256
in_sulc = File(
257257
exists=True,
@@ -331,7 +331,7 @@ class PaintInputSpec(FSTraitedSpec):
331331
mandatory=True,
332332
position=-2,
333333
desc="Surface file with grid (vertices) onto which the "
334-
+ "template data is to be sampled or 'painted'",
334+
"template data is to be sampled or 'painted'",
335335
)
336336
template = File(
337337
argstr="%s", exists=True, mandatory=True, position=-3, desc="Template file"
@@ -348,7 +348,7 @@ class PaintInputSpec(FSTraitedSpec):
348348
name_source=["in_surf"],
349349
keep_extension=False,
350350
desc="File containing a surface-worth of per-vertex values, "
351-
+ "saved in 'curvature' format.",
351+
"saved in 'curvature' format.",
352352
)
353353

354354

nipype/interfaces/freesurfer/utils.py

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,7 +2093,7 @@ class CheckTalairachAlignmentInputSpec(FSTraitedSpec):
20932093
usedefault=True,
20942094
argstr="-T %.3f",
20952095
desc="Talairach transforms for subjects with p-values <= T "
2096-
+ "are considered as very unlikely default=0.010",
2096+
"are considered as very unlikely default=0.010",
20972097
)
20982098

20992099

@@ -2482,8 +2482,7 @@ class FixTopologyInputSpec(FSTraitedSpec):
24822482
copy_inputs = traits.Bool(
24832483
mandatory=True,
24842484
desc="If running as a node, set this to True "
2485-
+ "otherwise, the topology fixing will be done "
2486-
+ "in place.",
2485+
"otherwise, the topology fixing will be done in place.",
24872486
)
24882487

24892488
# optional
@@ -2736,9 +2735,8 @@ class MakeSurfacesInputSpec(FSTraitedSpec):
27362735
)
27372736
white = traits.String(argstr="-white %s", desc="White surface name")
27382737
copy_inputs = traits.Bool(
2739-
desc="If running as a node, set this to True."
2740-
+ "This will copy the input files to the node "
2741-
+ "directory."
2738+
desc="If running as a node, set this to True. "
2739+
"This will copy the input files to the node directory."
27422740
)
27432741

27442742

@@ -3011,9 +3009,8 @@ class CurvatureStatsInputSpec(FSTraitedSpec):
30113009
)
30123010
write = traits.Bool(argstr="--writeCurvatureFiles", desc="Write curvature files")
30133011
copy_inputs = traits.Bool(
3014-
desc="If running as a node, set this to True."
3015-
+ "This will copy the input files to the node "
3016-
+ "directory."
3012+
desc="If running as a node, set this to True. "
3013+
"This will copy the input files to the node directory."
30173014
)
30183015

30193016

@@ -3236,7 +3233,7 @@ class VolumeMaskInputSpec(FSTraitedSpec):
32363233
exists=True,
32373234
xor=["in_aseg"],
32383235
desc="Implicit aseg.mgz segmentation. "
3239-
+ "Specify a different aseg by using the 'in_aseg' input.",
3236+
"Specify a different aseg by using the 'in_aseg' input.",
32403237
)
32413238
subject_id = traits.String(
32423239
"subject_id",
@@ -3256,12 +3253,11 @@ class VolumeMaskInputSpec(FSTraitedSpec):
32563253
save_ribbon = traits.Bool(
32573254
argstr="--save_ribbon",
32583255
desc="option to save just the ribbon for the "
3259-
+ "hemispheres in the format ?h.ribbon.mgz",
3256+
"hemispheres in the format ?h.ribbon.mgz",
32603257
)
32613258
copy_inputs = traits.Bool(
3262-
desc="If running as a node, set this to True."
3263-
+ "This will copy the implicit input files to the "
3264-
+ "node directory."
3259+
desc="If running as a node, set this to True. "
3260+
"This will copy the implicit input files to the node directory."
32653261
)
32663262

32673263

@@ -3430,9 +3426,8 @@ class ParcellationStatsInputSpec(FSTraitedSpec):
34303426
desc="Output annotation files's colortable to text file",
34313427
)
34323428
copy_inputs = traits.Bool(
3433-
desc="If running as a node, set this to True."
3434-
+ "This will copy the input files to the node "
3435-
+ "directory."
3429+
desc="If running as a node, set this to True. "
3430+
"This will copy the input files to the node directory."
34363431
)
34373432
th3 = traits.Bool(
34383433
argstr="-th3",
@@ -3622,9 +3617,8 @@ class ContrastInputSpec(FSTraitedSpec):
36223617
exists=True, mandatory=True, desc="Implicit input file mri/rawavg.mgz"
36233618
)
36243619
copy_inputs = traits.Bool(
3625-
desc="If running as a node, set this to True."
3626-
+ "This will copy the input files to the node "
3627-
+ "directory."
3620+
desc="If running as a node, set this to True. "
3621+
"This will copy the input files to the node directory."
36283622
)
36293623

36303624

nipype/interfaces/fsl/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2365,8 +2365,8 @@ class GLMInputSpec(FSLCommandInputSpec):
23652365
position=2,
23662366
desc=(
23672367
"file name of the GLM design matrix (text time"
2368-
+ " courses for temporal regression or an image"
2369-
+ " file for spatial regression)"
2368+
" courses for temporal regression or an image"
2369+
" file for spatial regression)"
23702370
),
23712371
)
23722372
contrasts = File(
@@ -2380,7 +2380,7 @@ class GLMInputSpec(FSLCommandInputSpec):
23802380
argstr="--des_norm",
23812381
desc=(
23822382
"switch on normalization of the design"
2383-
+ " matrix columns to unit std deviation"
2383+
" matrix columns to unit std deviation"
23842384
),
23852385
)
23862386
dat_norm = traits.Bool(

0 commit comments

Comments
 (0)