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

Implement bioformats2raw structure #50

Merged
merged 6 commits into from
Nov 26, 2024
Merged

Implement bioformats2raw structure #50

merged 6 commits into from
Nov 26, 2024

Conversation

dstansby
Copy link
Collaborator

@dstansby dstansby commented Nov 23, 2024

Implements the parts of #31 that do not require parsing XML files (🙈) or zarr groups.

I think the intention of the spec is to have this as another "type" of dataset, alongside HCS and Image, even though it is defined in section 3 (not 2) of the spec. This agrees with the JSON scheme ipmlementaiton being in it's own file for bioformats2raw.

So I've put it in the ome_zarr_models.v04 namespace, and I think (for now) we are expecting users to know in advance whether they have a HCS, Image, or BioFormats2Raw dataset? I guess we could provide a convenience function to try work out which of these an arbitrary dataset is, but that should go in a separate PR

@dstansby dstansby marked this pull request as draft November 23, 2024 08:48
@dstansby dstansby marked this pull request as ready for review November 25, 2024 08:15
@d-v-b
Copy link
Collaborator

d-v-b commented Nov 25, 2024

I guess we could provide a convenience function to try work out which of these an arbitrary dataset is, but that should go in a separate PR

On the pydantic side of the codebase, we can implement this with a function that tries validation of the different flavors of zarr group, from most specific to least specific, and returns the first class that matches?

@dstansby dstansby requested a review from d-v-b November 26, 2024 08:49
Copy link
Collaborator

@d-v-b d-v-b left a comment

Choose a reason for hiding this comment

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

lgtm!

@d-v-b d-v-b merged commit 9d7c784 into main Nov 26, 2024
3 checks passed
@d-v-b d-v-b deleted the bioformats2raw branch November 26, 2024 08:56
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