File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 3535DATA_FILE_EMPTY_ST = pjoin (IO_DATA_PATH , 'slicethickness_empty_string.dcm' )
3636DATA_FILE_4D_DERIVED = pjoin (get_nibabel_data (), 'nitest-dicom' , '4d_multiframe_with_derived.dcm' )
3737DATA_FILE_CT = pjoin (get_nibabel_data (), 'nitest-dicom' , 'siemens_ct_header_csa.dcm' )
38+ DATA_FILE_SIEMENS_TRACE = pjoin (
39+ get_nibabel_data (),
40+ 'dcm_qa_xa30' ,
41+ 'In/20_DWI_dir80_AP/0001_1.3.12.2.1107.5.2.43.67093.2022071112140611403312307.dcm' ,
42+ )
3843
3944# This affine from our converted image was shown to match our image spatially
4045# with an image from SPM DICOM conversion. We checked the matching with SPM
@@ -656,6 +661,13 @@ def test_data_derived_shape(self):
656661 with pytest .warns (UserWarning , match = 'Derived images found and removed' ):
657662 assert dw .image_shape == (96 , 96 , 60 , 33 )
658663
664+ @dicom_test
665+ @needs_nibabel_data ('dcm_qa_xa30' )
666+ def test_data_trace (self ):
667+ # Test that a standalone trace volume is found and not dropped
668+ dw = didw .wrapper_from_file (DATA_FILE_SIEMENS_TRACE )
669+ assert dw .image_shape == (72 , 72 , 39 , 1 )
670+
659671 @dicom_test
660672 @needs_nibabel_data ('nitest-dicom' )
661673 def test_data_unreadable_private_headers (self ):
You can’t perform that action at this time.
0 commit comments