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)
def test_label(self): filename = str(self.path.join("labels", "astronaut")) layers = napari_get_reader(filename)() self.assert_layers(layers, False, True)
def test_image(self): layers = napari_get_reader(str(self.path))() self.assert_layers(layers, True, False)