|
4 | 4 |
|
5 | 5 |
|
6 | 6 | def test_Deconvolve_inputs():
|
7 |
| - input_map = dict(STATmask=dict(argstr='-STATmask %s', |
8 |
| - ), |
9 |
| - TR_1D=dict(argstr='-TR_1D %f', |
10 |
| - ), |
11 |
| - allzero_OK=dict(argstr='-allzero_OK', |
12 |
| - ), |
13 |
| - args=dict(argstr='%s', |
14 |
| - ), |
15 |
| - automask=dict(argstr='-automask', |
16 |
| - ), |
17 |
| - cbucket=dict(argstr='-cbucket %s', |
18 |
| - ), |
19 |
| - censor=dict(argstr='-censor %s', |
20 |
| - ), |
21 |
| - dmbase=dict(argstr='-dmbase', |
22 |
| - ), |
23 |
| - dname=dict(argstr='-D%s=%s', |
24 |
| - ), |
25 |
| - environ=dict(nohash=True, |
26 |
| - usedefault=True, |
27 |
| - ), |
28 |
| - force_TR=dict(argstr='-force_TR %f', |
29 |
| - position=0, |
30 |
| - ), |
31 |
| - fout=dict(argstr='-fout', |
32 |
| - ), |
33 |
| - global_times=dict(argstr='-global_times', |
34 |
| - xor=['local_times'], |
35 |
| - ), |
36 |
| - glt_label=dict(argstr='-glt_label %d %s...', |
37 |
| - position=-1, |
38 |
| - requires=['gltsym'], |
39 |
| - ), |
40 |
| - gltsym=dict(argstr="-gltsym 'SYM: %s'...", |
41 |
| - position=-2, |
42 |
| - ), |
43 |
| - goforit=dict(argstr='-GOFORIT %i', |
44 |
| - ), |
45 |
| - ignore_exception=dict(deprecated='1.0.0', |
46 |
| - nohash=True, |
47 |
| - usedefault=True, |
48 |
| - ), |
49 |
| - in_files=dict(argstr='-input %s', |
50 |
| - copyfile=False, |
51 |
| - position=1, |
52 |
| - sep=' ', |
53 |
| - ), |
54 |
| - input1D=dict(argstr='-input1D %s', |
55 |
| - ), |
56 |
| - jobs=dict(argstr='-jobs %d', |
57 |
| - ), |
58 |
| - legendre=dict(argstr='-legendre', |
59 |
| - ), |
60 |
| - local_times=dict(argstr='-local_times', |
61 |
| - xor=['global_times'], |
62 |
| - ), |
63 |
| - mask=dict(argstr='-mask %s', |
64 |
| - ), |
65 |
| - noblock=dict(argstr='-noblock', |
66 |
| - ), |
67 |
| - nocond=dict(argstr='-nocond', |
68 |
| - ), |
69 |
| - nodmbase=dict(argstr='-nodmbase', |
70 |
| - ), |
71 |
| - nolegendre=dict(argstr='-nolegendre', |
72 |
| - ), |
73 |
| - nosvd=dict(argstr='-nosvd', |
74 |
| - ), |
75 |
| - num_glt=dict(argstr='-num_glt %d', |
76 |
| - position=-3, |
77 |
| - ), |
78 |
| - num_stimts=dict(argstr='-num_stimts %d', |
79 |
| - position=-6, |
80 |
| - ), |
81 |
| - num_threads=dict(nohash=True, |
82 |
| - usedefault=True, |
83 |
| - ), |
84 |
| - ortvec=dict(argstr='-ortvec %s %s', |
85 |
| - ), |
86 |
| - out_file=dict(argstr='-bucket %s', |
87 |
| - ), |
88 |
| - outputtype=dict(), |
89 |
| - polort=dict(argstr='-polort %d', |
90 |
| - ), |
91 |
| - rmsmin=dict(argstr='-rmsmin %f', |
92 |
| - ), |
93 |
| - rout=dict(argstr='-rout', |
94 |
| - ), |
95 |
| - sat=dict(argstr='-sat', |
96 |
| - xor=['trans'], |
97 |
| - ), |
98 |
| - singvals=dict(argstr='-singvals', |
99 |
| - ), |
100 |
| - stim_label=dict(argstr='-stim_label %d %s...', |
101 |
| - position=-4, |
102 |
| - requires=['stim_times'], |
103 |
| - ), |
104 |
| - stim_times=dict(argstr="-stim_times %d %s '%s'...", |
105 |
| - position=-5, |
106 |
| - ), |
107 |
| - stim_times_subtract=dict(argstr='-stim_times_subtract %f', |
108 |
| - ), |
109 |
| - svd=dict(argstr='-svd', |
110 |
| - ), |
111 |
| - terminal_output=dict(deprecated='1.0.0', |
112 |
| - nohash=True, |
113 |
| - ), |
114 |
| - tout=dict(argstr='-tout', |
115 |
| - ), |
116 |
| - trans=dict(argstr='-trans', |
117 |
| - xor=['sat'], |
118 |
| - ), |
119 |
| - vout=dict(argstr='-vout', |
120 |
| - ), |
121 |
| - x1D=dict(argstr='-x1D %s', |
122 |
| - ), |
123 |
| - x1D_stop=dict(argstr='-x1D_stop', |
124 |
| - ), |
| 7 | + input_map = dict( |
| 8 | + STATmask=dict(argstr='-STATmask %s', ), |
| 9 | + TR_1D=dict(argstr='-TR_1D %f', ), |
| 10 | + allzero_OK=dict(argstr='-allzero_OK', ), |
| 11 | + args=dict(argstr='%s', ), |
| 12 | + automask=dict(argstr='-automask', ), |
| 13 | + cbucket=dict(argstr='-cbucket %s', ), |
| 14 | + censor=dict(argstr='-censor %s', ), |
| 15 | + dmbase=dict(argstr='-dmbase', ), |
| 16 | + dname=dict(argstr='-D%s=%s', ), |
| 17 | + environ=dict( |
| 18 | + nohash=True, |
| 19 | + usedefault=True, |
| 20 | + ), |
| 21 | + force_TR=dict( |
| 22 | + argstr='-force_TR %f', |
| 23 | + position=0, |
| 24 | + ), |
| 25 | + fout=dict(argstr='-fout', ), |
| 26 | + global_times=dict( |
| 27 | + argstr='-global_times', |
| 28 | + xor=['local_times'], |
| 29 | + ), |
| 30 | + glt_label=dict( |
| 31 | + argstr='-glt_label %d %s...', |
| 32 | + position=-1, |
| 33 | + requires=['gltsym'], |
| 34 | + ), |
| 35 | + gltsym=dict( |
| 36 | + argstr="-gltsym 'SYM: %s'...", |
| 37 | + position=-2, |
| 38 | + ), |
| 39 | + goforit=dict(argstr='-GOFORIT %i', ), |
| 40 | + ignore_exception=dict( |
| 41 | + deprecated='1.0.0', |
| 42 | + nohash=True, |
| 43 | + usedefault=True, |
| 44 | + ), |
| 45 | + in_files=dict( |
| 46 | + argstr='-input %s', |
| 47 | + copyfile=False, |
| 48 | + position=1, |
| 49 | + sep=' ', |
| 50 | + ), |
| 51 | + input1D=dict(argstr='-input1D %s', ), |
| 52 | + jobs=dict(argstr='-jobs %d', ), |
| 53 | + legendre=dict(argstr='-legendre', ), |
| 54 | + local_times=dict( |
| 55 | + argstr='-local_times', |
| 56 | + xor=['global_times'], |
| 57 | + ), |
| 58 | + mask=dict(argstr='-mask %s', ), |
| 59 | + noblock=dict(argstr='-noblock', ), |
| 60 | + nocond=dict(argstr='-nocond', ), |
| 61 | + nodmbase=dict(argstr='-nodmbase', ), |
| 62 | + nolegendre=dict(argstr='-nolegendre', ), |
| 63 | + nosvd=dict(argstr='-nosvd', ), |
| 64 | + num_glt=dict( |
| 65 | + argstr='-num_glt %d', |
| 66 | + position=-3, |
| 67 | + ), |
| 68 | + num_stimts=dict( |
| 69 | + argstr='-num_stimts %d', |
| 70 | + position=-6, |
| 71 | + ), |
| 72 | + num_threads=dict( |
| 73 | + nohash=True, |
| 74 | + usedefault=True, |
| 75 | + ), |
| 76 | + ortvec=dict(argstr='ortvec %s', ), |
| 77 | + out_file=dict(argstr='-bucket %s', ), |
| 78 | + outputtype=dict(), |
| 79 | + polort=dict(argstr='-polort %d', ), |
| 80 | + rmsmin=dict(argstr='-rmsmin %f', ), |
| 81 | + rout=dict(argstr='-rout', ), |
| 82 | + sat=dict( |
| 83 | + argstr='-sat', |
| 84 | + xor=['trans'], |
| 85 | + ), |
| 86 | + singvals=dict(argstr='-singvals', ), |
| 87 | + stim_label=dict( |
| 88 | + argstr='-stim_label %d %s...', |
| 89 | + position=-4, |
| 90 | + requires=['stim_times'], |
| 91 | + ), |
| 92 | + stim_times=dict( |
| 93 | + argstr="-stim_times %d %s '%s'...", |
| 94 | + position=-5, |
| 95 | + ), |
| 96 | + stim_times_subtract=dict(argstr='-stim_times_subtract %f', ), |
| 97 | + svd=dict(argstr='-svd', ), |
| 98 | + terminal_output=dict( |
| 99 | + deprecated='1.0.0', |
| 100 | + nohash=True, |
| 101 | + ), |
| 102 | + tout=dict(argstr='-tout', ), |
| 103 | + trans=dict( |
| 104 | + argstr='-trans', |
| 105 | + xor=['sat'], |
| 106 | + ), |
| 107 | + vout=dict(argstr='-vout', ), |
| 108 | + x1D=dict(argstr='-x1D %s', ), |
| 109 | + x1D_stop=dict(argstr='-x1D_stop', ), |
125 | 110 | )
|
126 | 111 | inputs = Deconvolve.input_spec()
|
127 | 112 |
|
128 | 113 | for key, metadata in list(input_map.items()):
|
129 | 114 | for metakey, value in list(metadata.items()):
|
130 | 115 | assert getattr(inputs.traits()[key], metakey) == value
|
131 |
| - |
132 |
| - |
133 | 116 | def test_Deconvolve_outputs():
|
134 |
| - output_map = dict(cbucket=dict(), |
135 |
| - out_file=dict(), |
136 |
| - reml_script=dict(), |
137 |
| - x1D=dict(), |
| 117 | + output_map = dict( |
| 118 | + cbucket=dict(), |
| 119 | + out_file=dict(), |
| 120 | + reml_script=dict(), |
| 121 | + x1D=dict(), |
138 | 122 | )
|
139 | 123 | outputs = Deconvolve.output_spec()
|
140 | 124 |
|
|
0 commit comments