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

DataView: get dimensions/ticks #480

Open
refactoriel opened this issue Oct 16, 2020 · 1 comment
Open

DataView: get dimensions/ticks #480

refactoriel opened this issue Oct 16, 2020 · 1 comment

Comments

@refactoriel
Copy link

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?

@achilleas-k
Copy link
Member

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.

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