Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Text repr: remove "Dimensions without coordinates" section#10489

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
benbovy wants to merge4 commits intopydata:main
base:main
Choose a base branch
Loading
frombenbovy:repr-remove-dimension-without-coord

Conversation

benbovy
Copy link
Member

TheDimensions without coordinates section of the Dataset and DataArray text reprs was useful in the context of dimension coordinates with a default index. Since the index refactor, however, it may be more confusing than useful and even inaccurate in the case of non-dimension coordinate or multi-coordinate indexes.

I took the bold step of simply removing that section in this PR. I don't know who is really paying attention to it nowadays, though (there's no equivalent in the html reprs). Alternatively we could keep it and try listing the dimensions more accurately.

scottyhq, keewis, and shoyer reacted with thumbs up emoji
@github-actionsgithub-actionsbot added topic-documentation topic-plotting topic-rolling topic-DataTreeRelated to the implementation of a DataTree class labelsJul 2, 2025
@shoyer
Copy link
Member

I was never a big fan of "Dimensions without coordinates"!

This message does provide a gentle nudge to annotate coordinates on all dimensions, but I'm not sure that's appropriate or necessary. Xarray would definitely be a bit tidier for non-coordinate users if this section was not shown.

Digging back through when we added this, these issues provide the original context:
#1017 (comment)
#1199 (comment)

In particular, the complaint was that it could be hard to notice missing coordinates onDataArray because coordinates can be far below the list of dimensions. So maybe part of this fix could be reversing the order of "Data" and "Coordinates" in the DataArray repr?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
topic-DataTreeRelated to the implementation of a DataTree classtopic-plottingtopic-rolling
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@benbovy@shoyer@dcherian

[8]ページ先頭

©2009-2025 Movatter.jp