Skip to content

Commit 265511e

Browse files
committed
TEST: Update test DICOM file location
1 parent caa6df9 commit 265511e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nibabel/nicom/tests/test_dicomwrappers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
assert_not_equal, assert_raises)
2222

2323
from numpy.testing import assert_array_equal, assert_array_almost_equal
24+
from ...tests.nibabel_data import get_nibabel_data, needs_nibabel_data
2425

2526
IO_DATA_PATH = pjoin(dirname(__file__), 'data')
2627
DATA_FILE = pjoin(IO_DATA_PATH, 'siemens_dwi_1000.dcm.gz')
@@ -36,7 +37,8 @@
3637
DATA_FILE_DEC_RSCL = pjoin(IO_DATA_PATH, 'decimal_rescale.dcm')
3738
DATA_FILE_4D = pjoin(IO_DATA_PATH, '4d_multiframe_test.dcm')
3839
DATA_FILE_EMPTY_ST = pjoin(IO_DATA_PATH, 'slicethickness_empty_string.dcm')
39-
DATA_FILE_4D_DERIVED = pjoin(IO_DATA_PATH, '4d_multiframe_with_derived.dcm')
40+
DATA_FILE_4D_DERIVED = pjoin(get_nibabel_data(), 'nitest-dicom',
41+
'4d_multiframe_with_derived.dcm')
4042

4143
# This affine from our converted image was shown to match our image spatially
4244
# with an image from SPM DICOM conversion. We checked the matching with SPM
@@ -624,6 +626,7 @@ def test_slicethickness_fallback(self):
624626
assert_equal(dw.voxel_sizes[2], 1.0)
625627

626628
@dicom_test
629+
@needs_nibabel_data('nitest-dicom')
627630
def test_data_derived_shape(self):
628631
# Test 4D diffusion data with an additional trace volume included
629632
# Excludes the trace volume and generates the correct shape

0 commit comments

Comments
 (0)