File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
nipype/interfaces/freesurfer/tests Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -188,25 +188,20 @@ def test_mrisexpand(tmpdir):
188
188
assert expand_if .cmdline == orig_cmdline
189
189
assert expand_nd .interface .cmdline == orig_cmdline
190
190
191
- # Run both interfaces
192
- if_res = expand_if .run ()
191
+ # Run Node interface
193
192
nd_res = expand_nd .run ()
194
193
195
194
# Commandlines differ
196
195
node_cmdline = 'mris_expand -T 60 -pial {cwd}/lh.pial {cwd}/lh.smoothwm ' \
197
196
'1 expandtmp' .format (cwd = nd_res .runtime .cwd )
198
- assert if_res .runtime .cmdline == orig_cmdline
199
197
assert nd_res .runtime .cmdline == node_cmdline
200
198
201
199
# Check output
202
- if_out_file = if_res . outputs . get ()['out_file' ]
200
+ if_out_file = expand_if . _list_outputs ()['out_file' ]
203
201
nd_out_file = nd_res .outputs .get ()['out_file' ]
204
202
# Same filename
205
203
assert op .basename (if_out_file ) == op .basename (nd_out_file )
206
204
# Interface places output in source directory
207
205
assert op .dirname (if_out_file ) == op .dirname (fsavginfo ['smoothwm' ])
208
206
# Node places output in working directory
209
207
assert op .dirname (nd_out_file ) == nd_res .runtime .cwd
210
-
211
- # Remove test surface
212
- os .unlink (if_out_file )
You can’t perform that action at this time.
0 commit comments