Skip to content

Commit

Permalink
Merge branch 'bugfix/tree-diff' of https://github.com/kayjan/bigtree
Browse files Browse the repository at this point in the history
…into v0.21.3
  • Loading branch information
kayjan committed Oct 16, 2024
2 parents c72e2ad + 36a96f8 commit 0dcc7f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bigtree/tree/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,12 @@ def get_tree_diff(
- For example: (+) refers to nodes that are in `other_tree` but not `tree`.
- For example: (-) refers to nodes that are in `tree` but not `other_tree`.
!!! note
- tree and other_tree must have the same `sep` symbol, otherwise this will raise ValueError
- If the `sep` symbol contains one of `+` / `-` / `~` character, a fallback sep will be used
- Node names in tree and other_tree must not contain the `sep` (or fallback sep) symbol
Examples:
>>> # Create original tree
>>> from bigtree import Node, get_tree_diff, list_to_tree
Expand Down

0 comments on commit 0dcc7f2

Please sign in to comment.