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 35
35
DATA_FILE_EMPTY_ST = pjoin (IO_DATA_PATH , 'slicethickness_empty_string.dcm' )
36
36
DATA_FILE_4D_DERIVED = pjoin (get_nibabel_data (), 'nitest-dicom' , '4d_multiframe_with_derived.dcm' )
37
37
DATA_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
+ )
38
43
39
44
# This affine from our converted image was shown to match our image spatially
40
45
# with an image from SPM DICOM conversion. We checked the matching with SPM
@@ -656,6 +661,13 @@ def test_data_derived_shape(self):
656
661
with pytest .warns (UserWarning , match = 'Derived images found and removed' ):
657
662
assert dw .image_shape == (96 , 96 , 60 , 33 )
658
663
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
+
659
671
@dicom_test
660
672
@needs_nibabel_data ('nitest-dicom' )
661
673
def test_data_unreadable_private_headers (self ):
You can’t perform that action at this time.
0 commit comments