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

Allow validating local datasets #33

Open
dstansby opened this issue Mar 25, 2024 · 1 comment
Open

Allow validating local datasets #33

dstansby opened this issue Mar 25, 2024 · 1 comment

Comments

@dstansby
Copy link

I just tried validating a local file, and the tool didn't seem to work - the link I used was https://ome.github.io/ome-ngff-validator/?source=file:///Users/dstansby/notebooks/ct-scans/david_ct_scan.zarr, and the directory definitely exists. The error message is:

Error Loading file:///Users/dstansby/notebooks/ct-scans/david_ct_scan.zarr/.zattrs: TypeError: NetworkError when attempting to fetch resource.
@will-moore
Copy link
Member

The easiest solution is to use ome-zarr-py:

$ ome_zarr view path/to/ct-scans/david_ct_scan.zarr

That will serve the zarr locally and automatically open it in ome-ngff-validator.

See https://ome-zarr.readthedocs.io/en/stable/cli.html#view
It actually looks best if you don't add the trailing slash as above (not like in the docs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants