Skip to content

Commit 3782d28

Browse files
committed
Re-ran formatting.
1 parent 947bef2 commit 3782d28

File tree

2 files changed

+17
-49
lines changed

2 files changed

+17
-49
lines changed

nipype/interfaces/mrtrix/preprocess.py

Lines changed: 14 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ class MRConvertInputSpec(CommandLineInputSpec):
2424
position=-2,
2525
desc="voxel-order data filename",
2626
)
27-
out_filename = File(
28-
genfile=True, argstr="%s", position=-1, desc="Output filename"
29-
)
27+
out_filename = File(genfile=True, argstr="%s", position=-1, desc="Output filename")
3028
extract_at_axis = traits.Enum(
3129
1,
3230
2,
@@ -229,15 +227,11 @@ class DWI2TensorInputSpec(CommandLineInputSpec):
229227
position=1,
230228
desc=("Do not display information messages or progress " "status."),
231229
)
232-
debug = traits.Bool(
233-
argstr="-debug", position=1, desc="Display debugging messages."
234-
)
230+
debug = traits.Bool(argstr="-debug", position=1, desc="Display debugging messages.")
235231

236232

237233
class DWI2TensorOutputSpec(TraitedSpec):
238-
tensor = File(
239-
exists=True, desc="path/name of output diffusion tensor image"
240-
)
234+
tensor = File(exists=True, desc="path/name of output diffusion tensor image")
241235

242236

243237
class DWI2Tensor(CommandLine):
@@ -277,9 +271,7 @@ class Tensor2VectorInputSpec(CommandLineInputSpec):
277271
position=1,
278272
desc="Do not display information messages or progress status.",
279273
)
280-
debug = traits.Bool(
281-
argstr="-debug", position=1, desc="Display debugging messages."
282-
)
274+
debug = traits.Bool(argstr="-debug", position=1, desc="Display debugging messages.")
283275

284276

285277
class Tensor2VectorOutputSpec(TraitedSpec):
@@ -345,9 +337,7 @@ class Tensor2FractionalAnisotropyInputSpec(CommandLineInputSpec):
345337
position=1,
346338
desc="Do not display information messages or progress status.",
347339
)
348-
debug = traits.Bool(
349-
argstr="-debug", position=1, desc="Display debugging messages."
350-
)
340+
debug = traits.Bool(argstr="-debug", position=1, desc="Display debugging messages.")
351341

352342

353343
class Tensor2FractionalAnisotropyOutputSpec(TraitedSpec):
@@ -413,9 +403,7 @@ class Tensor2ApparentDiffusionInputSpec(CommandLineInputSpec):
413403
position=1,
414404
desc="Do not display information messages or progress status.",
415405
)
416-
debug = traits.Bool(
417-
argstr="-debug", position=1, desc="Display debugging messages."
418-
)
406+
debug = traits.Bool(argstr="-debug", position=1, desc="Display debugging messages.")
419407

420408

421409
class Tensor2ApparentDiffusionOutputSpec(TraitedSpec):
@@ -478,9 +466,7 @@ class MRMultiplyInputSpec(CommandLineInputSpec):
478466
position=1,
479467
desc="Do not display information messages or progress status.",
480468
)
481-
debug = traits.Bool(
482-
argstr="-debug", position=1, desc="Display debugging messages."
483-
)
469+
debug = traits.Bool(argstr="-debug", position=1, desc="Display debugging messages.")
484470

485471

486472
class MRMultiplyOutputSpec(TraitedSpec):
@@ -537,9 +523,7 @@ class MRTrixViewerInputSpec(CommandLineInputSpec):
537523
position=1,
538524
desc="Do not display information messages or progress status.",
539525
)
540-
debug = traits.Bool(
541-
argstr="-debug", position=1, desc="Display debugging messages."
542-
)
526+
debug = traits.Bool(argstr="-debug", position=1, desc="Display debugging messages.")
543527

544528

545529
class MRTrixViewerOutputSpec(TraitedSpec):
@@ -698,9 +682,7 @@ class ErodeInputSpec(CommandLineInputSpec):
698682
position=1,
699683
desc="Do not display information messages or progress status.",
700684
)
701-
debug = traits.Bool(
702-
argstr="-debug", position=1, desc="Display debugging messages."
703-
)
685+
debug = traits.Bool(argstr="-debug", position=1, desc="Display debugging messages.")
704686

705687

706688
class ErodeOutputSpec(TraitedSpec):
@@ -765,9 +747,7 @@ class ThresholdInputSpec(CommandLineInputSpec):
765747
argstr="-percent %s",
766748
desc="Specify threshold value as a percentage of the peak intensity in the input image.",
767749
)
768-
invert = traits.Bool(
769-
argstr="-invert", position=1, desc="Invert output binary mask"
770-
)
750+
invert = traits.Bool(argstr="-invert", position=1, desc="Invert output binary mask")
771751
replace_zeros_with_NaN = traits.Bool(
772752
argstr="-nan", position=1, desc="Replace all zero values with NaN"
773753
)
@@ -776,9 +756,7 @@ class ThresholdInputSpec(CommandLineInputSpec):
776756
position=1,
777757
desc="Do not display information messages or progress status.",
778758
)
779-
debug = traits.Bool(
780-
argstr="-debug", position=1, desc="Display debugging messages."
781-
)
759+
debug = traits.Bool(argstr="-debug", position=1, desc="Display debugging messages.")
782760

783761

784762
class ThresholdOutputSpec(TraitedSpec):
@@ -843,9 +821,7 @@ class MedianFilter3DInputSpec(CommandLineInputSpec):
843821
position=1,
844822
desc="Do not display information messages or progress status.",
845823
)
846-
debug = traits.Bool(
847-
argstr="-debug", position=1, desc="Display debugging messages."
848-
)
824+
debug = traits.Bool(argstr="-debug", position=1, desc="Display debugging messages.")
849825

850826

851827
class MedianFilter3DOutputSpec(TraitedSpec):
@@ -897,9 +873,7 @@ class MRTransformInputSpec(CommandLineInputSpec):
897873
position=-2,
898874
desc="Input images to be transformed",
899875
)
900-
out_filename = File(
901-
genfile=True, argstr="%s", position=-1, desc="Output image"
902-
)
876+
out_filename = File(genfile=True, argstr="%s", position=-1, desc="Output image")
903877
invert = traits.Bool(
904878
argstr="-inverse",
905879
position=1,
@@ -949,9 +923,7 @@ class MRTransformInputSpec(CommandLineInputSpec):
949923
position=1,
950924
desc="Do not display information messages or progress status.",
951925
)
952-
debug = traits.Bool(
953-
argstr="-debug", position=1, desc="Display debugging messages."
954-
)
926+
debug = traits.Bool(argstr="-debug", position=1, desc="Display debugging messages.")
955927

956928

957929
class MRTransformOutputSpec(TraitedSpec):

nipype/interfaces/mrtrix3/base.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ def looseversion(cls):
4646
class MRTrix3BaseInputSpec(CommandLineInputSpec):
4747
nthreads = traits.Int(
4848
argstr="-nthreads %d",
49-
desc="number of threads. if zero, the number"
50-
" of available cpus will be used",
49+
desc="number of threads. if zero, the number" " of available cpus will be used",
5150
nohash=True,
5251
)
5352
# DW gradient table import options
@@ -116,18 +115,15 @@ def _parse_inputs(self, skip=None):
116115
skip = []
117116

118117
try:
119-
if isdefined(self.inputs.grad_file) or isdefined(
120-
self.inputs.grad_fsl
121-
):
118+
if isdefined(self.inputs.grad_file) or isdefined(self.inputs.grad_fsl):
122119
skip += ["in_bvec", "in_bval"]
123120

124121
is_bvec = isdefined(self.inputs.in_bvec)
125122
is_bval = isdefined(self.inputs.in_bval)
126123
if is_bvec or is_bval:
127124
if not is_bvec or not is_bval:
128125
raise RuntimeError(
129-
"If using bvecs and bvals inputs, both"
130-
"should be defined"
126+
"If using bvecs and bvals inputs, both" "should be defined"
131127
)
132128
skip += ["in_bval"]
133129
except AttributeError:

0 commit comments

Comments
 (0)