예제 #1
0
 def test_label(self):
     filename = str(self.path.join("labels", "astronaut"))
     layers = napari_get_reader(filename)()
     properties = {
         "index": [i for i in range(1, 9)],
         "class": [f"class {i}" for i in range(1, 9)],
     }
     self.assert_layers(layers, False, True, properties)
예제 #2
0
 def test_label(self):
     filename = str(self.path.join("labels", "astronaut"))
     layers = napari_get_reader(filename)()
     self.assert_layers(layers, False, True)
예제 #3
0
 def test_image(self):
     layers = napari_get_reader(str(self.path))()
     self.assert_layers(layers, True, False)