Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test that the size of data in channel dimension matches with metadata #44

Closed
mattersoflight opened this issue Feb 9, 2023 · 0 comments · Fixed by #31
Closed

test that the size of data in channel dimension matches with metadata #44

mattersoflight opened this issue Feb 9, 2023 · 0 comments · Fixed by #31
Assignees
Labels
bug Something isn't working
Milestone

Comments

@mattersoflight
Copy link
Collaborator

HCSZarr dataset class should test that the size of each dimension matches in data and in metadata. I was able to write a wrong zarr dataset that would not open with napari-ome-zarr.

with HCSZarr.open(
    "hcs_wrong.zarr", mode="a", channel_names=["DAPI", "GFP"]
) as dataset:
    for row, col, fov in position_list:
        position = dataset.create_position(row, col, fov)
        position[0] = np.random.randint(
            0, np.iinfo(np.uint16).max, size=(5, 3, 3, 32, 32), dtype=np.uint16
        )

Originally posted by @mattersoflight in #31 (comment)

@mattersoflight mattersoflight added the bug Something isn't working label Feb 9, 2023
@mattersoflight mattersoflight added this to the 0.0.1 milestone Feb 9, 2023
@ziw-liu ziw-liu linked a pull request Feb 9, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants