Skip to content

Commit fe3c97e

Browse files
committed
specs
1 parent 5037c40 commit fe3c97e

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

nipype/interfaces/dcm2nii.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class Dcm2niixInputSpec(CommandLineInputSpec):
264264
position=-1,
265265
copyfile=False,
266266
mandatory=True,
267-
desc=('A set of filenames to be converted. Note that the current '
267+
desc=('A set of filenames to be converted. Note that the current '
268268
'version (1.0.20180328) of dcm2niix converts any files in the '
269269
'directory. To only convert specific files they should be in an '
270270
'isolated directory'),

nipype/tests/test_nipype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test_nipype_info():
1212
assert exception_not_raised
1313

1414

15-
@pytest.mark.skipif(not get_nipype_gitversion(),
15+
@pytest.mark.skipif(not get_nipype_gitversion(),
1616
reason="not able to get version from get_nipype_gitversion")
1717
def test_git_hash():
1818
# removing the first "g" from gitversion

nipype/workflows/dmri/dtitk/tensor_registration.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def diffeomorphic_tensor_pipeline(name='DiffeoTen',
5252
params={'array_size': (128, 128, 64)}):
5353
"""
5454
Workflow that performs a diffeomorphic registration
55-
(Rigid and Affine follwed by Diffeomorphic)
55+
(Rigid and Affine followed by Diffeomorphic)
5656
Note: the requirements for a diffeomorphic registration specify that
5757
the dimension 0 is a power of 2 so images are resliced prior to
5858
registration. Remember to move origin and reslice prior to applying xfm to
@@ -143,7 +143,7 @@ def diffeomorphic_tensor_pipeline(name='DiffeoTen',
143143

144144
return wf
145145

146-
146+
'''
147147
def apply_diffeo(name='ApplyDiffeo', params={'array_size': (128, 128, 64)}):
148148
149149
"""
@@ -167,10 +167,9 @@ def apply_diffeo(name='ApplyDiffeo', params={'array_size': (128, 128, 64)}):
167167
outputnode = pe.Node(niu.IdentityInterface(
168168
fields=['out_file']),
169169
name='outputnode')
170-
origin_node = pe.Node(dtitk.TVAdjustVoxSp(origin=(0, 0, 0)),
170+
origin_node = pe.Node(dtitk.SVAdjustVoxSp(origin=(0, 0, 0)),
171171
name='origin_node')
172-
reslice_node_pow2 = pe.Node(dtitk.TVResample(
173-
origin=(0, 0, 0),
172+
reslice_node_pow2 = pe.Node(dtitk.SVResample(
174173
array_size=params['array_size']),
175174
name='reslice_node_pow2')
176175
apply_xfm_node = pe.Node(dtitk.DiffeoScalarVol(), name='apply_xfm_node')
@@ -183,4 +182,4 @@ def apply_diffeo(name='ApplyDiffeo', params={'array_size': (128, 128, 64)}):
183182
wf.connect(inputnode, 'xfm_file', apply_xfm_node, 'transform')
184183
wf.connect(apply_xfm_node, 'out_file', outputnode, 'out_file')
185184
186-
return wf
185+
return wf'''

tools/checkspecs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def test_specs(self, uri):
287287
and "requires" not in trait.__dict__\
288288
and "xor" not in trait.__dict__:
289289
if trait.trait_type.__class__.__name__ is "Range"\
290-
and trait.default == trait.trait_type._low:
290+
and trait.default == trait.trait_type._low:
291291
continue
292292
bad_specs.append(
293293
[uri, c, 'Inputs', traitname, 'default value is set, no value for usedefault'])

0 commit comments

Comments
 (0)