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

Show redirect link to validator if bioformats2raw #240

Merged
merged 2 commits into from
Feb 24, 2025

Conversation

will-moore
Copy link
Collaborator

@will-moore will-moore commented Feb 19, 2025

Fixes #149.

This is an implementation of #149 (comment) to provide a redirect link to ome-ngff-validator if the image is a bioformats2raw.layout.

The validator will show the Series of images in the collection, each with a link to open in vizarr etc.

To test:

https://deploy-preview-240--vizarr.netlify.app/?source=https://storage.googleapis.com/jax-public-ngff-2024/public_data/1851/whitej_205/2020-10/28/12-38-38.406/K99691_10.zarr

@will-moore will-moore force-pushed the redirect_bioformats2raw branch from df4f250 to ed02ee1 Compare February 19, 2025 22:24
Comment on lines +153 to +158
if ((err as Error).name === "RedirectError") {
let redirect = err as RedirectError;
set(redirectObjAtom, { message: redirect.message, url: redirect.url });
} else {
set(sourceErrorAtom, (err as Error).message);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might touch some of this to try to avoid type assertions in follow up PR.

@manzt
Copy link
Member

manzt commented Feb 24, 2025

Looks great. We can work on the UI in a follow up PR. Thanks for taking care of this!

@manzt manzt merged commit aec3e45 into hms-dbmi:main Feb 24, 2025
6 checks passed
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

Successfully merging this pull request may close these issues.

Support bioformats2raw layout
2 participants