File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -127,12 +127,6 @@ def path_name(self) -> str:
127127 sep = ancestors [- 1 ].sep
128128 return sep + sep .join ([str (node .node_name ) for node in reversed (ancestors )])
129129
130- def show (self , ** kwargs : Any ) -> None :
131- """Print tree to console, takes in same keyword arguments as `print_tree` function."""
132- from bigtree .tree .export import print_tree
133-
134- print_tree (self , ** kwargs )
135-
136130 def _BaseNode__pre_assign_parent (self : T , new_parent : T ) -> None :
137131 """Do not allow duplicate nodes of same path.
138132
@@ -169,6 +163,12 @@ def _BaseNode__pre_assign_children(self: T, new_children: list[T]) -> None:
169163 f"Attempting to add nodes with same path { duplicate_names_str } "
170164 )
171165
166+ def show (self , ** kwargs : Any ) -> None :
167+ """Print tree to console, takes in same keyword arguments as `print_tree` function."""
168+ from bigtree .tree .export import print_tree
169+
170+ print_tree (self , ** kwargs )
171+
172172 def hshow (self , ** kwargs : Any ) -> None :
173173 """Print tree in horizontal orientation to console, takes in same keyword arguments as `hprint_tree` function."""
174174 from bigtree .tree .export import hprint_tree
You can’t perform that action at this time.
0 commit comments