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

Support 2d ome zarr #7349

Merged
merged 19 commits into from
Oct 16, 2023
Merged

Support 2d ome zarr #7349

merged 19 commits into from
Oct 16, 2023

Conversation

frcroth
Copy link
Member

@frcroth frcroth commented Sep 19, 2023

URL of deployed dev instance (used for testing):

  • https://___.webknossos.xyz

Tested for one dataset with channels and without.

Steps to test:

  • Explore and read a 2d ome zarr dataset

Issues:


(Please delete unneeded items, merge only when none are left open)

  • Updated changelog
  • Needs datastore update after deployment

@frcroth frcroth changed the title WIP: Support 2d ome zarr Support 2d ome zarr Oct 10, 2023
@frcroth frcroth marked this pull request as ready for review October 10, 2023 13:10
@frcroth frcroth requested a review from fm3 October 10, 2023 13:10
@frcroth frcroth self-assigned this Oct 10, 2023
Copy link
Member

@fm3 fm3 left a comment

Choose a reason for hiding this comment

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

Thanks for fighting your way through this!

Do you think it would be a lot of effort to change it to a single case class AxisOrder with an optional z, instead of the two classes with the abstract one on top?

Then, wherever you have the match pattern now, we could have if (axisOrder.hasZAxis) {} else {}. Also, we would get the json format for free.

@@ -30,11 +30,35 @@ class DatasetArray(vaultPath: VaultPath,

protected lazy val chunkReader: ChunkReader = new ChunkReader(header)

// Helper variables to allow reading 2d datasets as 3d datasets with depth 1
Copy link
Member

Choose a reason for hiding this comment

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

Could you also add a comment in the header definition mentioning this? We might in the future want to use a value from the header class, and should instead look here.

@fm3
Copy link
Member

fm3 commented Oct 15, 2023

Does readBytesWithAdditionalCoordinates also have to be adapted? 🤔

@frcroth frcroth requested a review from fm3 October 16, 2023 09:56
@frcroth
Copy link
Member Author

frcroth commented Oct 16, 2023

Does readBytesWithAdditionalCoordinates also have to be adapted? 🤔

Looking at it I guess not, is this in scope of this PR?

Copy link
Member

@fm3 fm3 left a comment

Choose a reason for hiding this comment

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

👍

@frcroth frcroth merged commit d15170f into master Oct 16, 2023
2 checks passed
@frcroth frcroth deleted the 2d-datasets branch October 16, 2023 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow import of 2D OME-Zarr data
2 participants