tensorstore icon indicating copy to clipboard operation
tensorstore copied to clipboard

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

Open blasscoc-tgs opened this issue 2 years ago • 2 comments

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.

blasscoc-tgs avatar Nov 03 '23 15:11 blasscoc-tgs

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.

jbms avatar Nov 03 '23 17:11 jbms

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.

blasscoc-tgs avatar Nov 03 '23 18:11 blasscoc-tgs