File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1313from nibabel .onetime import auto_attr
1414from nibabel .optpkg import optional_package
1515from nibabel .spatialimages import SpatialImage
16- from nibabel .tests .nibabel_data import get_nibabel_data
16+ from nibabel .tests .nibabel_data import get_nibabel_data , needs_nibabel_data
1717
1818h5 , has_h5py , _ = optional_package ('h5py' )
1919
@@ -360,13 +360,15 @@ def from_filename(klass, pathlike):
360360 return self
361361
362362
363+ @needs_nibabel_data ('nitest-freesurfer' )
363364def test_FreeSurferHemisphere ():
364365 lh = FreeSurferHemisphere .from_filename (FS_DATA / 'fsaverage/surf/lh.white' )
365366 assert lh .n_coords == 163842
366367 assert lh .n_triangles == 327680
367368
368369
369370@skipUnless (has_h5py , reason = 'Test requires h5py' )
371+ @needs_nibabel_data ('nitest-freesurfer' )
370372def test_make_H5Geometry (tmp_path ):
371373 lh = FreeSurferHemisphere .from_filename (FS_DATA / 'fsaverage/surf/lh.white' )
372374 h5geo = H5Geometry .from_object (lh )
You can’t perform that action at this time.
0 commit comments