Skip to content

Commit c81259b

Browse files
committed
run black over touched files
1 parent f245ba4 commit c81259b

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

nipype/interfaces/mrtrix3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
MRResize,
1515
DWIExtract,
1616
SHConv,
17-
SH2Amp
17+
SH2Amp,
1818
)
1919
from .preprocess import (
2020
ResponseSD,

nipype/interfaces/mrtrix3/reconst.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
import os.path as op
66

7-
from ..base import (
8-
traits, TraitedSpec, File, Undefined, InputMultiObject, isdefined)
7+
from ..base import traits, TraitedSpec, File, Undefined, InputMultiObject, isdefined
98
from .base import MRTrix3BaseInputSpec, MRTrix3Base
109

1110

@@ -52,10 +51,12 @@ class FitTensorInputSpec(MRTrix3BaseInputSpec):
5251
),
5352
)
5453
predicted_signal = File(
55-
argstr='-predicted_signal %s',
54+
argstr="-predicted_signal %s",
5655
desc=(
5756
"specify a file to contain the predicted signal from the tensor "
58-
"fits. This can be used to calculate the residual signal"))
57+
"fits. This can be used to calculate the residual signal"
58+
),
59+
)
5960

6061

6162
class FitTensorOutputSpec(TraitedSpec):
@@ -89,8 +90,7 @@ def _list_outputs(self):
8990
outputs = self.output_spec().get()
9091
outputs["out_file"] = op.abspath(self.inputs.out_file)
9192
if isdefined(self.inputs.predicted_signal):
92-
outputs['predicted_signal'] = op.abspath(
93-
self.inputs.predicted_signal)
93+
outputs["predicted_signal"] = op.abspath(self.inputs.predicted_signal)
9494
return outputs
9595

9696

@@ -155,13 +155,15 @@ class EstimateFODInputSpec(MRTrix3BaseInputSpec):
155155
),
156156
)
157157
predicted_signal = File(
158-
argstr='-predicted_signal %s',
158+
argstr="-predicted_signal %s",
159159
desc=(
160160
"specify a file to contain the predicted signal from the FOD "
161161
"estimates. This can be used to calculate the residual signal."
162162
"Note that this is only valid if algorithm == 'msmt_csd'. "
163163
"For single shell reconstructions use a combination of SHConv "
164-
"and SH2Amp instead."))
164+
"and SH2Amp instead."
165+
),
166+
)
165167

166168

167169
class EstimateFODOutputSpec(TraitedSpec):
@@ -207,12 +209,12 @@ def _list_outputs(self):
207209
if isdefined(self.inputs.csf_odf):
208210
outputs["csf_odf"] = op.abspath(self.inputs.csf_odf)
209211
if isdefined(self.inputs.predicted_signal):
210-
if self.inputs.algorithm != 'msmt_csd':
212+
if self.inputs.algorithm != "msmt_csd":
211213
raise Exception(
212214
"'predicted_signal' option can only be used with "
213-
"the 'msmt_csd' algorithm")
214-
outputs["predicted_signal"] = op.abspath(
215-
self.inputs.predicted_signal)
215+
"the 'msmt_csd' algorithm"
216+
)
217+
outputs["predicted_signal"] = op.abspath(self.inputs.predicted_signal)
216218
return outputs
217219

218220

nipype/interfaces/mrtrix3/utils.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,7 @@ class SHConvInputSpec(CommandLineInputSpec):
797797

798798

799799
class SHConvOutputSpec(TraitedSpec):
800-
out_file = File(exists=True,
801-
desc="the output convoluted spherical harmonics file")
800+
out_file = File(exists=True, desc="the output convoluted spherical harmonics file")
802801

803802

804803
class SHConv(CommandLine):
@@ -829,7 +828,6 @@ def _list_outputs(self):
829828
return outputs
830829

831830

832-
833831
class SH2AmpInputSpec(CommandLineInputSpec):
834832
in_file = File(
835833
exists=True,
@@ -845,8 +843,10 @@ class SH2AmpInputSpec(CommandLineInputSpec):
845843
mandatory=True,
846844
argstr="%s",
847845
position=-2,
848-
desc=("The gradient directions along which to sample the spherical "
849-
"harmonics MRtrix format"),
846+
desc=(
847+
"The gradient directions along which to sample the spherical "
848+
"harmonics MRtrix format"
849+
),
850850
)
851851

852852
out_file = File(
@@ -859,13 +859,12 @@ class SH2AmpInputSpec(CommandLineInputSpec):
859859
)
860860

861861
nonnegative = traits.Bool(
862-
argstr='-nonnegative',
863-
desc="cap all negative amplitudes to zero")
862+
argstr="-nonnegative", desc="cap all negative amplitudes to zero"
863+
)
864864

865865

866866
class SH2AmpOutputSpec(TraitedSpec):
867-
out_file = File(exists=True,
868-
desc="the output convoluted spherical harmonics file")
867+
out_file = File(exists=True, desc="the output convoluted spherical harmonics file")
869868

870869

871870
class SH2Amp(CommandLine):

0 commit comments

Comments
 (0)