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

High level API to find the ngff version from a Group #26

Closed
lorenzocerrone opened this issue Nov 22, 2024 · 1 comment · Fixed by #105
Closed

High level API to find the ngff version from a Group #26

lorenzocerrone opened this issue Nov 22, 2024 · 1 comment · Fixed by #105

Comments

@lorenzocerrone
Copy link
Collaborator

The idea is to have a function that tries to find the ngff version from a given group.

def find_version(group: Group) -> str

Should this also validate the entire model? Or should it try just to load the version attr in the multiscale group?

@dstansby
Copy link
Collaborator

👍 for this! We won't be able to do this perfectly, because in verison 0.4 of the spec requiring the version is a bit patchwork across the different zarr groups, but we can certainly write a function that tries and returns None if it can't find any info.

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

Successfully merging a pull request may close this issue.

2 participants