def get_ixi_tiny(self): root_dir = Path(tempfile.gettempdir()) / 'torchio' / 'ixi_tiny' return IXITiny(root_dir, download=True)
def test_tiny_not_downloaded(self): with self.assertRaises(RuntimeError): dataset = IXITiny('testing123', download=False)
def test_ixi(self): root_dir = Path(tempfile.gettempdir(), 'ixi_tiny') dataset = IXITiny(root_dir, download=True)