File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 13
13
from nibabel .onetime import auto_attr
14
14
from nibabel .optpkg import optional_package
15
15
from 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
17
17
18
18
h5 , has_h5py , _ = optional_package ('h5py' )
19
19
@@ -360,13 +360,15 @@ def from_filename(klass, pathlike):
360
360
return self
361
361
362
362
363
+ @needs_nibabel_data ('nitest-freesurfer' )
363
364
def test_FreeSurferHemisphere ():
364
365
lh = FreeSurferHemisphere .from_filename (FS_DATA / 'fsaverage/surf/lh.white' )
365
366
assert lh .n_coords == 163842
366
367
assert lh .n_triangles == 327680
367
368
368
369
369
370
@skipUnless (has_h5py , reason = 'Test requires h5py' )
371
+ @needs_nibabel_data ('nitest-freesurfer' )
370
372
def test_make_H5Geometry (tmp_path ):
371
373
lh = FreeSurferHemisphere .from_filename (FS_DATA / 'fsaverage/surf/lh.white' )
372
374
h5geo = H5Geometry .from_object (lh )
You can’t perform that action at this time.
0 commit comments