-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,13 +41,10 @@ def tearDown(self): | |
class TestSTIRAcquisitionDataAlgebraFile(unittest.TestCase, TestDataContainerAlgebra): | ||
|
||
def setUp(self): | ||
if os.path.exists(os.path.join( | ||
examples_data_path('PET'), 'mMR', 'mMR_template_span11_small.hs')): | ||
|
||
template = pet.AcquisitionData(os.path.join( | ||
examples_data_path('PET'), 'mMR', 'mMR_template_span11_small.hs') | ||
) | ||
|
||
path = os.path.join( | ||
examples_data_path('PET'), 'thorax_single_slice', 'template_sinogram.hs') | ||
if os.path.exists(path): | ||
template = pet.AcquisitionData(path) | ||
self.image1 = template.get_uniform_copy(0) | ||
self.image2 = template.get_uniform_copy(0) | ||
# assert False | ||
|
@@ -68,17 +65,14 @@ def test_division_by_datacontainer_zero(self): | |
class TestSTIRAcquisitionDataAlgebraMemory(unittest.TestCase, TestDataContainerAlgebra): | ||
def setUp(self): | ||
pet.AcquisitionData.set_storage_scheme('file') | ||
if os.path.exists(os.path.join( | ||
examples_data_path('PET'), 'mMR', 'mMR_template_span11_small.hs')): | ||
|
||
template = pet.AcquisitionData(os.path.join( | ||
examples_data_path('PET'), 'mMR', 'mMR_template_span11_small.hs') | ||
) | ||
|
||
path = os.path.join( | ||
examples_data_path('PET'), 'thorax_single_slice', 'template_sinogram.hs') | ||
if os.path.exists(path): | ||
template = pet.AcquisitionData(path) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
evgueni-ovtchinnikov
Author
Contributor
|
||
self.image1 = template.get_uniform_copy(0) | ||
self.image2 = template.get_uniform_copy(0) | ||
# assert False | ||
pet.AcquisitionData.set_storage_scheme('memory') | ||
def test_division_by_datacontainer_zero(self): | ||
# skip this test as currently cSIRF doesn't throw | ||
pass | ||
pass |
is it still fast enough if we keep these to the mMR? Reason I'm asking is that the data organisation for 3D PET is a lot more complicated than for a 2D single slice, so the test is stronger with the 3D case. The
InMemory
tests should be quite a lot faster than theFile
ones, so this is possibly still feasible