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

Rename inherited -> inherit in DataTree.to_dataset #9615

Merged
merged 3 commits into from
Oct 13, 2024

Conversation

shoyer
Copy link
Member

@shoyer shoyer commented Oct 13, 2024

inherit is a little shorter than inherited, which I think makes for a slightly cleaner API. I believe this is also more consistent with other xarray method arguments, which are typically in the present tense.

Eventually, we can consider adding non-boolean options (e.g., inherit='indexed_coordinates' (default) vs inherit='all_coordinates').

@TomNicholas TomNicholas added the topic-DataTree Related to the implementation of a DataTree class label Oct 13, 2024
Copy link
Member

@TomNicholas TomNicholas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was one missed instance of the kwarg (from the recent PR #9602) so I just added that.

@TomNicholas TomNicholas enabled auto-merge (squash) October 13, 2024 14:54
@TomNicholas TomNicholas merged commit 93b4859 into pydata:main Oct 13, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-DataTree Related to the implementation of a DataTree class
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants