-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
DataArray coords: tuple vs. list #1016
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
Comments
Tuples are overloaded so you can avoid writing another constructor -- they're interpreted as Looking at the docs more carefully, we do mention this in the general overview of data structures, but not the API docs for |
This isn't clear to me either from reading the Data Structures section of the docs. In my case I triggered the error by attempting to instantiate a |
is there a reason the
coords
dictionary values cannot be a tuple? I found this fairly baffling to debug when it tripped me up.even if there was a clearer error it would help quite a bit. As it stands you are thinking, 'what?! four isn't a dimension!'
using 0.8.2
The text was updated successfully, but these errors were encountered: