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

Float conversion for networkx version fails due to multiple decimals #2

Open
rudransh-shrivastava opened this issue Nov 9, 2024 · 0 comments

Comments

@rudransh-shrivastava
Copy link

Hello!

The float conversion for checking compatible NetworkX version fails and the script crashes if installed version is 2.3.6 for example
the code at fault :

float(nx.__version__) < 2.0

tries to convert it directly without taking multiple decimals into consideration

I can create a pull request fixing this by splitting and joining the string to only consider the first 2 values if that's okay.
I can also try to find other places where there's a similar issue and fix those

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

1 participant