Skip to content

Commit ae34805

Browse files
author
dmordom
committed
cleanup
1 parent 8692b48 commit ae34805

File tree

4 files changed

+44
-2
lines changed

4 files changed

+44
-2
lines changed

CHANGES

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Release 0.9.0 (December 20, 2013)
1515

1616
* ENH: SelectFiles: a streamlined version of DataGrabber
1717
* ENH: new tools for defining workflows: JoinNode, synchronize and itersource
18-
* ENH: New interfaces: spm.ResliceToReference, FuzzyOverlap, afni.AFNItoNIFTI
19-
spm.DicomImport, P2PDistance
2018
* ENH: W3C PROV support with optional RDF export built into Nipype
2119
* ENH: Added support for Simple Linux Utility Resource Management (SLURM)
2220
* ENH: AFNI interfaces refactor, prefix, suffix are replaced by "flexible_%s_templates"
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from nipype.testing import assert_equal
3+
from nipype.interfaces.vista.vista import VtoMat
4+
def test_VtoMat_inputs():
5+
input_map = dict(ignore_exception=dict(nohash=True,
6+
usedefault=True,
7+
),
8+
out_file=dict(hash_files=False,
9+
name_template='%s.mat',
10+
name_source=['in_file'],
11+
keep_extension=False,
12+
position=-1,
13+
argstr='-out %s',
14+
),
15+
args=dict(argstr='%s',
16+
),
17+
terminal_output=dict(nohash=True,
18+
mandatory=True,
19+
),
20+
environ=dict(nohash=True,
21+
usedefault=True,
22+
),
23+
in_file=dict(position=1,
24+
mandatory=True,
25+
argstr='-in %s',
26+
),
27+
)
28+
inputs = VtoMat.input_spec()
29+
30+
for key, metadata in input_map.items():
31+
for metakey, value in metadata.items():
32+
yield assert_equal, getattr(inputs.traits()[key], metakey), value
33+
def test_VtoMat_outputs():
34+
output_map = dict(out_file=dict(),
35+
)
36+
outputs = VtoMat.output_spec()
37+
38+
for key, metadata in output_map.items():
39+
for metakey, value in metadata.items():
40+
yield assert_equal, getattr(outputs.traits()[key], metakey), value

nipype/interfaces/vista/vista.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ class Vnifti2Image(CommandLine):
3232
3333
>>> vimage = Vnifti2Image()
3434
>>> vimage.inputs.in_file = 'image.nii'
35+
>>> vimage.cmdline
36+
'vnifti2image -in image.nii -out image.v'
3537
>>> vimage.run() # doctest: +SKIP
3638
"""
3739

@@ -57,6 +59,8 @@ class VtoMat(CommandLine):
5759
5860
>>> vimage = VtoMat()
5961
>>> vimage.inputs.in_file = 'image.v'
62+
>>> vimage.cmdline
63+
'vtomat -in image.v -out image.mat'
6064
>>> vimage.run() # doctest: +SKIP
6165
"""
6266

nipype/testing/data/image.v

Whitespace-only changes.

0 commit comments

Comments
 (0)