Skip to content

Commit f9a9cfd

Browse files
committed
tst: fix filmgls test
1 parent 161e4b5 commit f9a9cfd

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

nipype/interfaces/fsl/tests/test_model.py

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,36 @@ def test_filmgls():
109109
tukey_window = dict(xor=['autocorr_estimate_only', 'fit_armodel', 'tukey_window', 'multitaper_product', 'use_pava', 'autocorr_noestimate'],argstr='-tukey %d',),
110110
use_pava = dict(argstr='-pava',),
111111
)
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+
)
112133
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
116142

117143
@skipif(no_fsl)
118144
def test_flameo():

0 commit comments

Comments
 (0)