nixpy
nixpy copied to clipboard
DataView: get dimensions/ticks
MultiTag.retrieve_data returns a DataView to the referenced DataArray.
If I want to know the corresponding ticks I have to get the entire array via DataArray.dimensions and then index into that array dependent on MultiTag.positions and MultiTag.extents.
I think it would be handy to also return a view on the dimensions. Does that make sense?
It does indeed make sense and I had a similar thought while preparing the examples in the previous issue. We're always looking out for adding syntactic sugar and convenience methods to make working with NIX easier and this is definitely one of those cases.
Please keep this issue open until it's added.