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

Zarrv2 - Accessing Struct Array data as |V[sizeof] type #125

Open
blasscoc-tgs opened this issue Nov 3, 2023 · 2 comments
Open

Zarrv2 - Accessing Struct Array data as |V[sizeof] type #125

blasscoc-tgs opened this issue Nov 3, 2023 · 2 comments

Comments

@blasscoc-tgs
Copy link

blasscoc-tgs commented Nov 3, 2023

Zarrv2 and Tensorstore support struct array data. Ordinarily we would use a "field" to select a element of the struct array for a particular TensorStore.

However, in a use case where we always want to read and work with the whole struct, not just a single element, can we open the Tensorstore associated with a struct array as "V|[sizeof]"? This would be on the C++ side.

@jbms
Copy link
Collaborator

jbms commented Nov 3, 2023

This is not currently possible ---it wouldn't be too difficult but we'd have to look into the best way to accomplish this. Possibly we could add an option to open it as a plain byte array, with one extra dimension that indexes over the bytes of the value.

@blasscoc-tgs
Copy link
Author

Possibly we could add an option to open it as a plain byte array, with one extra dimension that indexes over the bytes of the value.
Yes, I think the way the stores work with the byte arrays is really nice. Are you able to give some direction on how best to do that? I'm happy to have a go at adding that feature.

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

No branches or pull requests

2 participants