Skip to content

Commit

Permalink
Fixed a test that should compare sets instead of tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
JLrumberger committed Apr 17, 2024
1 parent 217e9ee commit 8550fb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def segmentation_naming_convention(fov_path):
# check if we get the correct channels and fov_paths
dataset = MultiplexDataset(fov_paths, segmentation_naming_convention, suffix=".ome.tiff")
assert len(dataset) == 1
assert dataset.channels == ["CD4", "CD56"]
assert set(dataset.channels) == set(["CD4", "CD56"])
assert dataset.fov_paths == fov_paths
assert dataset.multi_channel == True
cd4_channel = io.imread(fov_paths[0])[0]
Expand All @@ -312,7 +312,7 @@ def segmentation_naming_convention(fov_path):
)
dataset = MultiplexDataset(fov_paths, segmentation_naming_convention, suffix=".tiff")
assert len(dataset) == 1
assert dataset.channels == ["CD4", "CD56"]
assert set(dataset.channels) == set(["CD4", "CD56"])
assert dataset.fov_paths == fov_paths
assert dataset.multi_channel == False
cd4_channel_ = dataset.get_channel(fov="fov_0", channel="CD4")
Expand Down

0 comments on commit 8550fb0

Please sign in to comment.