File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
nipype/interfaces/freesurfer/tests Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -230,3 +230,19 @@ def test_mrisexpand(tmpdir):
230230 assert op .dirname (if_out_file ) == op .dirname (fsavginfo ["smoothwm" ])
231231 # Node places output in working directory
232232 assert op .dirname (nd_out_file ) == nd_res .runtime .cwd
233+
234+
235+ @pytest .mark .skipif (fs .no_freesurfer (), reason = "freesurfer is not installed" )
236+ def test_eulernumber (tmpdir ):
237+ # grab a surface from fsaverage
238+ fssrc = FreeSurferSource (
239+ subjects_dir = fs .Info .subjectsdir (), subject_id = "fsaverage" , hemi = "lh"
240+ )
241+ pial = fssrc .run ().outputs .pial
242+ assert isinstance (pial , str ), "Problem when fetching surface file"
243+
244+ eu = fs .EulerNumber ()
245+ eu .inputs .in_file = pial
246+ res = eu .run ()
247+ assert res .outputs .defects == 0
248+ assert res .outputs .euler == 2
You can’t perform that action at this time.
0 commit comments