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

networkx2.4: Graph Object methods removed #54

Closed
aschmiedeke opened this issue Jan 9, 2020 · 3 comments
Closed

networkx2.4: Graph Object methods removed #54

aschmiedeke opened this issue Jan 9, 2020 · 3 comments

Comments

@aschmiedeke
Copy link

When running FilFinder (version 1.6) I got the following AttributeError message:

  File "/usr/local/lib/python3.7/dist-packages/fil_finder/filfinder2D.py", line 641, in analyze_skeletons
    max_prune_iter=max_prune_iter)
  File "/usr/local/lib/python3.7/dist-packages/fil_finder/filament.py", line 286, in skeleton_analysis
    if prev_G.node == G[0].node:
AttributeError: 'Graph' object has no attribute 'node'

Changing line 286 in filament.py from
if prev_G.node == G[0].node:
to
if prev_G.nodes == G[0].nodes:
solved the problem for me.

See also https://networkx.github.io/documentation/stable/release/release_2.4.html#deprecations

@e-koch
Copy link
Owner

e-koch commented Jan 12, 2020

Thanks! This is fixed in master. I'll push a new release soon, but in the meantime, you can install the fixed version with pip install git+https://github.com/e-koch/FilFinder.git@master.

@aschmiedeke
Copy link
Author

Sorry for the late reply! I installed the fixed version and things are running fine! Thank you!

@e-koch
Copy link
Owner

e-koch commented Apr 1, 2020

I've released v1.7 on pip that includes this fix.

@e-koch e-koch closed this as completed Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants