Add support for structured dtypes to zarr3 driver, open zarr 2 and 3 structs as void#264
Closed
BrianMichell wants to merge 23 commits intogoogle:masterfrom
Closed
Add support for structured dtypes to zarr3 driver, open zarr 2 and 3 structs as void#264BrianMichell wants to merge 23 commits intogoogle:masterfrom
zarr3 driver, open zarr 2 and 3 structs as void#264BrianMichell wants to merge 23 commits intogoogle:masterfrom
Conversation
…t for raw bits dtype
Implement shim for `open_as_void` driver level flag
* Begin removing void field shim * Fully removed void string shim * Cleanup debug prints * Remove shimmed validation * Remove unnecessary comment * Prefer false over zero for ternary clarity
* Implement a more general and portable example set * Fix driver cache bug * Update example for template * Cleanup example * Remove testing examples from source
* Use the appropriate fill value for open_as_void structured data * Cleanup
zarr3 driver
zarr3 driverzarr3 driver, open zarr 2 and 3 structs as void
Contributor
Author
Collaborator
|
I'll try to begin looking at this PR this week. |
9 tasks
Collaborator
|
Ok,
|
Contributor
Author
|
Thanks for the feedback! I've split the features into zarr2 open_as_void feature and zarr3 add structs and open_as_void feature. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #241
This PR implements support for structured data in the
zarr3driver as well as the ability to interact with the full array as raw bytes to avoid needing to manage multiple Stores in client code.I am also happy to revisit the question of #125 for a more general Zarr support for this behavior.I have also implemented theopen_as_voidfeature in thezarrdriver for feature parity between the formats.Below is an example workflow that this usecase would support.
The Python snippet will generate a structured array of several different elements and types. A real world example of this is creating an array to store the SEG-Y 240-byte Trace Headers.
Click here to expand Python example.
The usecase continues with an HPC C++ application consuming either a single field from the structured dtype, or the entirety of the dtype to perform its intended workload. To keep this example code simple, I only demonstrate consuming the same field out of the raw data, however this could reasonably be extended to 70+ fields per element if writing a trivial data loader.
Click here to expand C++ example.