Skip to content

Attrs for default coordinate arrays - confusing - intended? #8567

Answered by dcherian
matthew-brett asked this question in Q&A
Discussion options

You must be logged in to vote

Is that as intended?

Yes, there is no underlying data stored.

Is there a way of making this less confusing?

I think we should raise an error on that attribute assignment. The message would recommend assigning values to that coordinate first ds['k'] = np.arange(ds.sizes['k'])

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@matthew-brett
Comment options

Answer selected by matthew-brett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants