Skip to content

Commit c3ccafe

Browse files
committed
Minor fixes (style)
1 parent e92e112 commit c3ccafe

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

nipype/interfaces/mrtrix3/preprocess.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class ResponseSDInputSpec(MRTrix3BaseInputSpec):
2424
algorithm = traits.Enum('msmt_5tt','dhollander','tournier','tax', argstr='%s', position=-6,
2525
mandatory=True, desc='response estimation algorithm (multi-tissue)')
26-
dwi_file = File(exists=True, argstr='%s', position=-5,
26+
in_file = File(exists=True, argstr='%s', position=-5,
2727
mandatory=True, desc='input DWI image')
2828
mtt_file = File(argstr='%s', position=-4, desc='input 5tt image')
2929
wm_file = File('wm.txt', argstr='%s', position=-3, usedefault=True,
@@ -52,7 +52,7 @@ class ResponseSD(MRTrix3Base):
5252
5353
>>> import nipype.interfaces.mrtrix3 as mrt
5454
>>> resp = mrt.ResponseSD()
55-
>>> resp.inputs.dwi_file = 'dwi.mif'
55+
>>> resp.inputs.in_file = 'dwi.mif'
5656
>>> resp.inputs.algorithm = 'tournier'
5757
>>> resp.inputs.grad_fsl = ('bvecs', 'bvals')
5858
>>> resp.cmdline # doctest: +ELLIPSIS
@@ -67,9 +67,9 @@ class ResponseSD(MRTrix3Base):
6767
def _list_outputs(self):
6868
outputs = self.output_spec().get()
6969
outputs['wm_file'] = op.abspath(self.inputs.wm_file)
70-
if self.inputs.gm_file!=Undefined:
70+
if self.inputs.gm_file != Undefined:
7171
outputs['gm_file'] = op.abspath(self.inputs.gm_file)
72-
if self.inputs.csf_file!=Undefined:
72+
if self.inputs.csf_file != Undefined:
7373
outputs['csf_file'] = op.abspath(self.inputs.csf_file)
7474
return outputs
7575

nipype/interfaces/mrtrix3/reconst.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def _list_outputs(self):
7676
class EstimateFODInputSpec(MRTrix3BaseInputSpec):
7777
algorithm = traits.Enum('csd','msmt_csd', argstr='%s', position=-8,
7878
mandatory=True, desc='FOD algorithm')
79-
dwi_file = File(exists=True, argstr='%s', position=-7,
79+
in_file = File(exists=True, argstr='%s', position=-7,
8080
mandatory=True, desc='input DWI image')
8181
wm_txt = File(argstr='%s', position=-6,
8282
mandatory=True, desc='WM response text file')
@@ -118,7 +118,7 @@ class EstimateFOD(MRTrix3Base):
118118
>>> import nipype.interfaces.mrtrix3 as mrt
119119
>>> fod = mrt.EstimateFOD()
120120
>>> fod.inputs.algorithm = 'csd'
121-
>>> fod.inputs.dwi_file = 'dwi.mif'
121+
>>> fod.inputs.in_file = 'dwi.mif'
122122
>>> fod.inputs.wm_txt = 'wm.txt'
123123
>>> fod.inputs.grad_fsl = ('bvecs', 'bvals')
124124
>>> fod.cmdline # doctest: +ELLIPSIS
@@ -133,9 +133,9 @@ class EstimateFOD(MRTrix3Base):
133133
def _list_outputs(self):
134134
outputs = self.output_spec().get()
135135
outputs['wm_odf'] = op.abspath(self.inputs.wm_odf)
136-
if self.inputs.gm_odf!=Undefined:
136+
if self.inputs.gm_odf != Undefined:
137137
outputs['gm_odf'] = op.abspath(self.inputs.gm_odf)
138-
if self.inputs.csf_odf!=Undefined:
138+
if self.inputs.csf_odf != Undefined:
139139
outputs['csf_odf'] = op.abspath(self.inputs.csf_odf)
140140
return outputs
141141

0 commit comments

Comments
 (0)