Skip to content

Commit

Permalink
Update plate reading tests to not expect plate labels
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Jan 17, 2022
1 parent 64cbd11 commit 41c0d8f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from ome_zarr.data import create_zarr
from ome_zarr.io import parse_url
from ome_zarr.reader import Node, Plate, PlateLabels, Reader
from ome_zarr.reader import Node, Plate, Reader
from ome_zarr.writer import write_image, write_plate_metadata, write_well_metadata


Expand Down Expand Up @@ -50,11 +50,12 @@ def test_minimal_plate(self):

reader = Reader(parse_url(str(self.path)))
nodes = list(reader())
assert len(nodes) == 2
# currently reading plate labels disabled. Only 1 node
assert len(nodes) == 1
assert len(nodes[0].specs) == 1
assert isinstance(nodes[0].specs[0], Plate)
assert len(nodes[1].specs) == 1
assert isinstance(nodes[1].specs[0], PlateLabels)
# assert len(nodes[1].specs) == 1
# assert isinstance(nodes[1].specs[0], PlateLabels)

def test_multiwells_plate(self):
row_names = ["A", "B", "C"]
Expand All @@ -72,8 +73,9 @@ def test_multiwells_plate(self):

reader = Reader(parse_url(str(self.path)))
nodes = list(reader())
assert len(nodes) == 2
# currently reading plate labels disabled. Only 1 node
assert len(nodes) == 1
assert len(nodes[0].specs) == 1
assert isinstance(nodes[0].specs[0], Plate)
assert len(nodes[1].specs) == 1
assert isinstance(nodes[1].specs[0], PlateLabels)
# assert len(nodes[1].specs) == 1
# assert isinstance(nodes[1].specs[0], PlateLabels)

0 comments on commit 41c0d8f

Please sign in to comment.