-
Notifications
You must be signed in to change notification settings - Fork 139
Add support for structured dtypes to zarr3 driver, open zarr 2 and 3 structs as void
#264
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
base: master
Are you sure you want to change the base?
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
|
I'll try to begin looking at this PR this week. |
|
Ok,
|
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.