Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trees should behave like networkx graphs #1232

Open
valentin-pinkau opened this issue Dec 19, 2024 · 0 comments
Open

Trees should behave like networkx graphs #1232

valentin-pinkau opened this issue Dec 19, 2024 · 0 comments
Assignees
Labels

Comments

@valentin-pinkau
Copy link
Member

Context

Affected library: webknossos

Expected Behavior

Trees should behave like networkx graphs

Current Behavior

iterating over nodes with data=True is different.

Steps to Reproduce the bug

s = wk.Skeleton((1, 1, 1), dataset_name="test_dataset")
g = s.add_group("test")
tree = g.add_tree("t")
tree.add_node((1, 2, 3))
for node_id, node_data in tree.nodes(data=True):
    print(node_id, node_data)

Should print the node id and the data dict, but I get the Node and an empty dict.

Your Environment for bug

webknossos-libs 0.16.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants