...
 
Commits (2)
......@@ -2,7 +2,7 @@ all:
test:
YIAS_TESTDATA=$(CURDIR)/../yias-testdata py.test-3 --cov yias --cov-report=term-missing yias
YIAS_TESTDATA=$(CURDIR)/../yias-testdata py.test-3 yias
testv:
YIAS_TESTDATA=$(CURDIR)/../yias-testdata py.test-3 -v -s --cov yias --cov-report=term-missing yias
YIAS_TESTDATA=$(CURDIR)/../yias-testdata py.test-3 -v -s yias
[flake8]
max-line-length=120
[tool:pytest]
addopts = --cov yias --cov-report=term-missing
filterwarnings =
ignore::DeprecationWarning:h5py.*:
ignore::DeprecationWarning:nibabel.*:
......@@ -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'}
}
......