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 n5 end-chunks with chunksize differing from metadata chunksize #6890

Merged
merged 3 commits into from
Mar 2, 2023

Conversation

fm3
Copy link
Member

@fm3 fm3 commented Mar 2, 2023

Turns out N5 chunks report their own size, which may differ from the chunk size specified in metadata for end-chunks (like, at the edges of the dataset). This PR introduces code into the wk chunk reading process that handles that.

First I tried reusing the chunkSizeAtIndex from our Neuroglancer Precomputed code, but it turns out that for N5 the bounding box is not a reliable source, chunks may or may not be truncated, so the chunk size mentioned in each chunk header should be used as the source of truth here.

Additionally, I renamed the TypedChunkReader to ChunkTyper, because its job is not actually reading anything, but converting a previously read byte array to a typed multi array.

URL of deployed dev instance (used for testing):

Steps to test:

Issues:


  • Updated changelog
  • Needs datastore update after deployment

@fm3 fm3 self-assigned this Mar 2, 2023
@fm3 fm3 changed the title Support n5 end-chunks with chunksize differing from metadata cunksize Support n5 end-chunks with chunksize differing from metadata chunksize Mar 2, 2023
@fm3 fm3 marked this pull request as ready for review March 2, 2023 13:56
@fm3 fm3 requested a review from frcroth March 2, 2023 13:56
Copy link
Member

@frcroth frcroth left a comment

Choose a reason for hiding this comment

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

LGTM

@fm3 fm3 merged commit 6b8f122 into master Mar 2, 2023
@fm3 fm3 deleted the n5-end-chunks branch March 2, 2023 15:18
hotzenklotz added a commit that referenced this pull request Mar 3, 2023
…pdown-menu

* 'master' of github.com:scalableminds/webknossos:
  Upgrade Antd to v4.24 (#6865)
  Support n5 end-chunks with chunksize differing from metadata chunksize (#6890)
hotzenklotz added a commit that referenced this pull request Mar 6, 2023
…come_header_UI

* 'master' of github.com:scalableminds/webknossos: (34 commits)
  Slim down view mode dropdown by using icons (#6900)
  Logging on password reset/change (#6901)
  When merging volume tracings, also merge segment lists (#6882)
  avoid spinner when switching tabs in dashboard (#6894)
  Upgrade Antd to v4.24 (#6865)
  Support n5 end-chunks with chunksize differing from metadata chunksize (#6890)
  Implement http range requests for HttpsSeekableByteChannel (#6869)
  new GH action for adding issues to project board
  Fix links in Changelog (#6881)
  adds dedicated explore method for zarr datasets with a datasource-properties.json (#6879)
  Release 23.03.0 (#6880)
  Fix superUser being wrongly marked as organization owners (#6876)
  Followups for OME-TIFF export (#6874)
  Fix reload-precomputed-mesh functionality (#6875)
  Adds OME-TIFF export (#6838)
  Add evolutions 99,100 to migration guide (#6871)
  Add link to imprint and privacy to help menu (#6870)
  Annotation Locking Mechanism (#6819)
  Update deprecated antd <Menu> (#6860)
  Add functions to get and set segment colors to the frontend API (#6853)
  ...
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.

Support reading N5 datasets where end-chunks have size smaller than that specified in metadata
2 participants