Skip to content

Commit 83f0dd9

Browse files
committed
fixing up github test
1 parent 476ba79 commit 83f0dd9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_github.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import pytest
2+
import nibabel as nb
3+
import numpy as np
24
from medimages4tests.utils import retrieve_from_github
3-
from fileformats.medimage import NiftiGz
45

56

67
@pytest.mark.xfail
78
def test_github_retrieve():
89

9-
path = retrieve_from_github(
10+
nifti_fpath = retrieve_from_github(
1011
org="nipype", repo="pydra-fsl-testdata", path="melodic_ica"
1112
)
12-
nifti = NiftiGz(path)
13+
nifti = nifti = nb.load(nifti_fpath)
1314

14-
assert nifti.shape == (204, 256, 256)
15+
assert np.array_equal(nifti.header["dim"][:4], [3, 204, 256, 256])

0 commit comments

Comments
 (0)