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

Descendants property #170

Merged
merged 6 commits into from
Dec 31, 2022
Merged

Conversation

TomNicholas
Copy link
Member

@TomNicholas TomNicholas commented Dec 30, 2022

Adds a .descendants property, which does the same thing as .subtree but doesn't return the current node.

Also added tests for several properties that were not explicitly tested before - lineage, ancestors, and subtree.

  • Closes #xxxx
  • Tests added
  • Passes pre-commit run --all-files
  • New functions/methods are listed in api.rst
  • Changes are summarized in docs/source/whats-new.rst

@TomNicholas TomNicholas added the enhancement New feature or request label Dec 30, 2022
@TomNicholas TomNicholas enabled auto-merge (squash) December 30, 2022 20:20
This was referenced Dec 30, 2022
@TomNicholas TomNicholas merged commit 2bac5e1 into xarray-contrib:main Dec 31, 2022
@TomNicholas TomNicholas deleted the descendants branch December 31, 2022 00:20
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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant