You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 24, 2024. It is now read-only.
# a simple treeroot=DataTree(name='root')
child=DataTree(name='child', parent=root)
grandchild=DataTree(name='grandchild', parent=child)
# changing the name of a child node does not correctly update the dict key in it's parent's childrenchild.name='childish'print(root) # this appears to be fineprint(list(root.children)) # however, the keys in root.children have not been updatedprint(root['childish']) # so this fails
Simple fix seems to be wherever the name property is being set it needs to also ensure that the keys in self.parent.children are updated as needed. Not sure if there is anywhere else that is storing these keys that also needs updating.