Skip to content

Commit b667b02

Browse files
committed
feat: variable renaming misc
1 parent c7c3d5a commit b667b02

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bigtree/tree/helper.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -490,11 +490,11 @@ def get_tree_diff(
490490
moved_from_ind = [name in names_added for name in names_removed]
491491
moved_to_ind = [name in names_removed for name in names_added]
492492

493-
path_removed_to_name = {
493+
path_removed_to_suffix = {
494494
path: "-" if not detail else ("moved from" if move_ind else "removed")
495495
for path, move_ind in zip(paths_removed, moved_from_ind)
496496
}
497-
path_added_to_name = {
497+
path_added_to_suffix = {
498498
path: "+" if not detail else ("moved to" if move_ind else "added")
499499
for path, move_ind in zip(paths_added, moved_to_ind)
500500
}
@@ -538,12 +538,12 @@ def get_tree_diff(
538538
tree_diff = construct.dataframe_to_tree(
539539
data_compare, node_type=tree.__class__, sep=tree.sep
540540
)
541-
for path in sorted(path_removed_to_name, reverse=True):
541+
for path in sorted(path_removed_to_suffix, reverse=True):
542542
_node = search.find_full_path(tree_diff, path)
543-
_node.name += f""" ({path_removed_to_name[path]})"""
544-
for path in sorted(path_added_to_name, reverse=True):
543+
_node.name += f""" ({path_removed_to_suffix[path]})"""
544+
for path in sorted(path_added_to_suffix, reverse=True):
545545
_node = search.find_full_path(tree_diff, path)
546-
_node.name += f""" ({path_added_to_name[path]})"""
546+
_node.name += f""" ({path_added_to_suffix[path]})"""
547547

548548
# Handle tree attribute difference
549549
if dict_attr_diff:

0 commit comments

Comments
 (0)