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

DatasetView.map fix keep_attrs #10219

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mathause
Copy link
Collaborator

@mathause mathause commented Apr 11, 2025

Allow setting keep_attrs in DatasetView.map as per the comment in the method. I copied the logic over from xr.Dataset.map.

@github-actions github-actions bot added topic-documentation topic-DataTree Related to the implementation of a DataTree class labels Apr 11, 2025
@mathause mathause marked this pull request as ready for review April 11, 2025 11:43
@mathause
Copy link
Collaborator Author

Failures look unrelated.

@mathause mathause requested a review from TomNicholas April 11, 2025 13:00
@mathause mathause changed the title DatasetView.map fix keep_attrs DatasetView.map fix keep_attrs Apr 11, 2025
@max-sixty
Copy link
Collaborator

lgtm

would love to get to a default of keep_attrs for everything and remove these kwargs!

@mathause mathause added the plan to merge Final call for comments label Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plan to merge Final call for comments topic-DataTree Related to the implementation of a DataTree class topic-documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants