Commit d6a37914 authored by Mark Hymers's avatar Mark Hymers
Browse files

For now we use Series Description starting with ISSS to allow non-contiguity


Signed-off-by: Mark Hymers's avatarMark Hymers <mark.hymers@ynic.york.ac.uk>
parent d65f0d3d
......@@ -782,14 +782,14 @@ class DICOMSeries(object):
Check whether this was acquired by one of the ISSS-style sequences
which mean that we can't check for Contiguity (as we won't have
data for every volume)
Unfortunately, we have to do this based on the series name as
there's nothing in the header to tell us.
"""
raise Exception("TODO: THIS CAN'T WORK - SS isn't the right thing")
try:
dat = self.get_first_property('SequenceVariant')
return 'SS' in dat
name = self.get_first_property('SeriesDescription')
return name.lower().startswith('isss')
except ValueError:
# Some files won't have SequenceVariant; in that case, we're
# not ISSS
return False
@property
......
......@@ -112,8 +112,8 @@ class TestCaseSiemensFMRIISSS(BaseStudySeriesTests):
'mosaic_type': True, 'original_type': True,
'singleorientation_type': True, 'contiguous_type': False,
'isss_type': True, 'create_nifti': True, 'physio': False,
'series_description': 'ContextRun1',
'sanitised_series_description': 'ContextRun1',
'series_description': 'ISSS: Run 1',
'sanitised_series_description': 'ISSS:_Run_1',
'lowest_image_uid': '1.3.12.2.1107.5.2.43.66095.2019120312160294144793204'}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment