File tree Expand file tree Collapse file tree 1 file changed +107
-0
lines changed
Expand file tree Collapse file tree 1 file changed +107
-0
lines changed Original file line number Diff line number Diff line change 1+ # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+ from ..dcm2nii import Dcm2nii
3+
4+
5+ def test_Dcm2nii_inputs ():
6+ input_map = dict (
7+ anonymize = dict (
8+ argstr = "-a" ,
9+ usedefault = True ,
10+ ),
11+ args = dict (
12+ argstr = "%s" ,
13+ ),
14+ collapse_folders = dict (
15+ argstr = "-c" ,
16+ usedefault = True ,
17+ ),
18+ config_file = dict (
19+ argstr = "-b %s" ,
20+ extensions = None ,
21+ genfile = True ,
22+ ),
23+ convert_all_pars = dict (
24+ argstr = "-v" ,
25+ usedefault = True ,
26+ ),
27+ date_in_filename = dict (
28+ argstr = "-d" ,
29+ usedefault = True ,
30+ ),
31+ environ = dict (
32+ nohash = True ,
33+ usedefault = True ,
34+ ),
35+ events_in_filename = dict (
36+ argstr = "-e" ,
37+ usedefault = True ,
38+ ),
39+ gzip_output = dict (
40+ argstr = "-g" ,
41+ usedefault = True ,
42+ ),
43+ id_in_filename = dict (
44+ argstr = "-i" ,
45+ usedefault = True ,
46+ ),
47+ nii_output = dict (
48+ argstr = "-n" ,
49+ usedefault = True ,
50+ ),
51+ output_dir = dict (
52+ argstr = "-o %s" ,
53+ genfile = True ,
54+ ),
55+ protocol_in_filename = dict (
56+ argstr = "-p" ,
57+ usedefault = True ,
58+ ),
59+ reorient = dict (
60+ argstr = "-r" ,
61+ ),
62+ reorient_and_crop = dict (
63+ argstr = "-x" ,
64+ usedefault = True ,
65+ ),
66+ source_dir = dict (
67+ argstr = "%s" ,
68+ mandatory = True ,
69+ position = - 1 ,
70+ xor = ["source_names" ],
71+ ),
72+ source_in_filename = dict (
73+ argstr = "-f" ,
74+ usedefault = True ,
75+ ),
76+ source_names = dict (
77+ argstr = "%s" ,
78+ copyfile = False ,
79+ mandatory = True ,
80+ position = - 1 ,
81+ xor = ["source_dir" ],
82+ ),
83+ spm_analyze = dict (
84+ argstr = "-s" ,
85+ xor = ["nii_output" ],
86+ ),
87+ )
88+ inputs = Dcm2nii .input_spec ()
89+
90+ for key , metadata in list (input_map .items ()):
91+ for metakey , value in list (metadata .items ()):
92+ assert getattr (inputs .traits ()[key ], metakey ) == value
93+
94+
95+ def test_Dcm2nii_outputs ():
96+ output_map = dict (
97+ bvals = dict (),
98+ bvecs = dict (),
99+ converted_files = dict (),
100+ reoriented_and_cropped_files = dict (),
101+ reoriented_files = dict (),
102+ )
103+ outputs = Dcm2nii .output_spec ()
104+
105+ for key , metadata in list (output_map .items ()):
106+ for metakey , value in list (metadata .items ()):
107+ assert getattr (outputs .traits ()[key ], metakey ) == value
You can’t perform that action at this time.
0 commit comments