示例#1
0
 def test_loading(self):
     # test normal construction
     with TemporaryZipDirectory(self.stack_location) as tmpzip:
         dstack = DicomImageStack(tmpzip)
         self.assertEqual(len(dstack), 64)
     # test zip
     dstack = DicomImageStack.from_zip(self.stack_location)
示例#2
0
 def test_mixed_studies(self):
     mixed_study_zip = osp.join(test_dir, 'CBCT', 'mixed_studies.zip')
     with self.assertRaises(ValueError):
         DicomImageStack.from_zip(mixed_study_zip)
示例#3
0
 def test_mixed_studies(self):
     mixed_study_zip = get_file_from_cloud_test_repo(['CBCT', 'mixed_studies.zip'])
     with self.assertRaises(ValueError):
         DicomImageStack.from_zip(mixed_study_zip)