@@ -109,10 +109,36 @@ def test_filmgls():
109
109
tukey_window = dict (xor = ['autocorr_estimate_only' , 'fit_armodel' , 'tukey_window' , 'multitaper_product' , 'use_pava' , 'autocorr_noestimate' ],argstr = '-tukey %d' ,),
110
110
use_pava = dict (argstr = '-pava' ,),
111
111
)
112
+ input_map2 = dict (args = dict (argstr = '%s' ,),
113
+ autocorr_estimate_only = dict (xor = ['autocorr_estimate_only' , 'fit_armodel' , 'tukey_window' , 'multitaper_product' , 'use_pava' , 'autocorr_noestimate' ],argstr = '--ac' ,),
114
+ autocorr_noestimate = dict (xor = ['autocorr_estimate_only' , 'fit_armodel' , 'tukey_window' , 'multitaper_product' , 'use_pava' , 'autocorr_noestimate' ],argstr = '--noest' ,),
115
+ brightness_threshold = dict (argstr = '--epith=%d' ,),
116
+ design_file = dict (argstr = '--pd=%s' ,),
117
+ environ = dict (usedefault = True ,),
118
+ fit_armodel = dict (xor = ['autocorr_estimate_only' , 'fit_armodel' , 'tukey_window' , 'multitaper_product' , 'use_pava' , 'autocorr_noestimate' ],argstr = '--ar' ,),
119
+ full_data = dict (argstr = '-v' ,),
120
+ ignore_exception = dict (usedefault = True ,),
121
+ in_file = dict (mandatory = True ,argstr = '--in=%s' ,),
122
+ mask_size = dict (argstr = '--ms=%d' ,),
123
+ multitaper_product = dict (xor = ['autocorr_estimate_only' , 'fit_armodel' , 'tukey_window' , 'multitaper_product' , 'use_pava' , 'autocorr_noestimate' ],argstr = '--mt=%d' ,),
124
+ output_pwdata = dict (argstr = '--outputPWdata' ,),
125
+ output_type = dict (),
126
+ results_dir = dict (argstr = '--rn=%s' ,usedefault = True ,),
127
+ smooth_autocorr = dict (argstr = '--sa' ,),
128
+ terminal_output = dict (mandatory = True ,),
129
+ threshold = dict (usedefault = True ,argstr = '--thr=%f' ,),
130
+ tukey_window = dict (xor = ['autocorr_estimate_only' , 'fit_armodel' , 'tukey_window' , 'multitaper_product' , 'use_pava' , 'autocorr_noestimate' ],argstr = '--tukey=%d' ,),
131
+ use_pava = dict (argstr = '--pava' ,),
132
+ )
112
133
instance = fsl .FILMGLS ()
113
- for key , metadata in input_map .items ():
114
- for metakey , value in metadata .items ():
115
- yield assert_equal , getattr (instance .inputs .traits ()[key ], metakey ), value
134
+ if isinstance (instance .inputs , fsl .FILMGLSInputSpec ):
135
+ for key , metadata in input_map .items ():
136
+ for metakey , value in metadata .items ():
137
+ yield assert_equal , getattr (instance .inputs .traits ()[key ], metakey ), value
138
+ else :
139
+ for key , metadata in input_map2 .items ():
140
+ for metakey , value in metadata .items ():
141
+ yield assert_equal , getattr (instance .inputs .traits ()[key ], metakey ), value
116
142
117
143
@skipif (no_fsl )
118
144
def test_flameo ():
0 commit comments