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

Fix versions for dtype checks. Don't check v0.4 #18

Merged
merged 2 commits into from
Oct 31, 2023

Conversation

will-moore
Copy link
Member

@will-moore will-moore commented Nov 1, 2022

My bad: For #16 (comment) the validator checks dtypes for v0.4 NGFF and asserts failure if dtypes mismatch (so that the PR could be tested).
However, v0.4 NGFF with mismatching dtypes are not actually invalid.
I forgot to revert that change before merging. So this PR fixes that and ONLY asserts that mismatching dtypes are invalid for versions after v0.4, to correspond to ome/ngff#154

So, checking the mismatching dytpe sample from the PR above (v0.4) should no-longer give a warning:
https://deploy-preview-18--ome-ngff-validator.netlify.app/?source=https://minio-dev.openmicroscopy.org/idr/v0.4/idr0077/9836832_z.zarr

@netlify
Copy link

netlify bot commented Nov 1, 2022

Deploy Preview for ome-ngff-validator ready!

Name Link
🔨 Latest commit 4acfaaa
🔍 Latest deploy log https://app.netlify.com/sites/ome-ngff-validator/deploys/6537e31657d9200007082b46
😎 Deploy Preview https://deploy-preview-18--ome-ngff-validator.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@joshmoore
Copy link
Member

Thanks, @will-moore. MSTM.

I assume it's considerably more work, but do you think it would be possible to get an informational message that this would cause an error/warning in the next version?

@will-moore
Copy link
Member Author

@joshmoore https://deploy-preview-18--ome-ngff-validator.netlify.app/?source=https://minio-dev.openmicroscopy.org/idr/v0.4/idr0077/9836832_z.zarr

It will look like this with Error for versions 0.5+:
Screenshot 2023-10-24 at 16 23 18

But for versions 0.1 - 0.4 you'll just see it as a warning:
Screenshot 2023-10-24 at 16 29 42

@joshmoore
Copy link
Member

Wow, nice!

@joshmoore joshmoore merged commit 7403f46 into ome:main Oct 31, 2023
4 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.

2 participants