Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Explicit copy#171

Merged
TomNicholas merged 9 commits intoxarray-contrib:mainfrom
TomNicholas:explicit_copy
Dec 31, 2022
Merged

Explicit copy#171
TomNicholas merged 9 commits intoxarray-contrib:mainfrom
TomNicholas:explicit_copy

Conversation

@TomNicholas
Copy link
Copy Markdown
Member

Instead of copying the copy method from Dataset and mapping it over all nodes, this PR explicitly writes out the copy method on DataTree, but also changes it to only copy the subtree, and not the parents.

Builds upon #170.

@TomNicholas TomNicholas enabled auto-merge (squash) December 31, 2022 00:21
@TomNicholas TomNicholas merged commit 667ea97 into xarray-contrib:main Dec 31, 2022
@TomNicholas TomNicholas deleted the explicit_copy branch December 31, 2022 00:26
flamingbear pushed a commit to flamingbear/rewritten-datatree that referenced this pull request Jan 19, 2024
* added descendants property

* tests for descendants, lineage, ancestors, subtree

* added descendants to API docs

* whatsnew

* rerun tests

* rewrote copy method

* remove outdated mypy ignore error
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant