|
21 | 21 | assert_not_equal, assert_raises)
|
22 | 22 |
|
23 | 23 | from numpy.testing import assert_array_equal, assert_array_almost_equal
|
| 24 | +from ...tests.nibabel_data import get_nibabel_data, needs_nibabel_data |
24 | 25 |
|
25 | 26 | IO_DATA_PATH = pjoin(dirname(__file__), 'data')
|
26 | 27 | DATA_FILE = pjoin(IO_DATA_PATH, 'siemens_dwi_1000.dcm.gz')
|
|
36 | 37 | DATA_FILE_DEC_RSCL = pjoin(IO_DATA_PATH, 'decimal_rescale.dcm')
|
37 | 38 | DATA_FILE_4D = pjoin(IO_DATA_PATH, '4d_multiframe_test.dcm')
|
38 | 39 | 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') |
40 | 42 |
|
41 | 43 | # This affine from our converted image was shown to match our image spatially
|
42 | 44 | # with an image from SPM DICOM conversion. We checked the matching with SPM
|
@@ -624,6 +626,7 @@ def test_slicethickness_fallback(self):
|
624 | 626 | assert_equal(dw.voxel_sizes[2], 1.0)
|
625 | 627 |
|
626 | 628 | @dicom_test
|
| 629 | + @needs_nibabel_data('nitest-dicom') |
627 | 630 | def test_data_derived_shape(self):
|
628 | 631 | # Test 4D diffusion data with an additional trace volume included
|
629 | 632 | # Excludes the trace volume and generates the correct shape
|
|
0 commit comments