tensorstore
tensorstore copied to clipboard
Zarrv2 - Accessing Struct Array data as |V[sizeof] type
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.
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.
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.