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

_do_checks attempts to convert version strings to float #34

Open
danielkentwood opened this issue Nov 14, 2023 · 0 comments
Open

_do_checks attempts to convert version strings to float #34

danielkentwood opened this issue Nov 14, 2023 · 0 comments

Comments

@danielkentwood
Copy link

In the _do_checks function from d3graph.py, there is an assert float(nx.__version__)>2. This is fine if the version only has two levels, but my current version of networkx is '2.8.8', so it throws:

ValueError: could not convert string to float: '2.8.8'

Consider changing to something like the following:

assert float('.'.join((nx.__version__).split('.')[:2]))>=2
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