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

NiceCXNetwork.to_networkx() fails with ValueError on networkx version 2.5.1 #79

Closed
coleslaw481 opened this issue Apr 21, 2021 · 1 comment
Assignees
Labels

Comments

@coleslaw481
Copy link
Contributor

With the release of networkx 2.5.1 the call NiceCXNetwork.to_networkx() is failing with a ValueError

To reproduce, install networkx 2.5.1 and ndex2 3.3.2 and run this code:

from ndex2.nice_cx_network import NiceCXNetwork

net = NiceCXNetwork()
n_one = net.create_node(node_name='node1')
n_two = net.create_node(node_name='node2')
net.create_edge(edge_source=n_one, edge_target=n_two)
net.to_networkx()

The output will be:

....anaconda3/envs/python39/lib/python3.9/site-packages/ndex2/nice_cx_network.py", line 1622, in to_networkx
    if float(nx.__version__) >= 2.0:
ValueError: could not convert string to float: '2.5.1'
@coleslaw481
Copy link
Contributor Author

Fixed with release of version 3.3.3

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

1 participant