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

Add type checking exception to node_attribute and link_attribute arguments of plot_network #177

Open
bernardoct opened this issue Nov 17, 2020 · 1 comment

Comments

@bernardoct
Copy link
Contributor

If a Pandas DataFrame is passed as an argument to either by accident, an obscure exception from networkx saying it cannot convert something (a Pandas Series) to RGB is raised. It is difficult for the user to figure out what the problem is.

@kaklise
Copy link
Collaborator

kaklise commented Nov 17, 2020

Thanks for letting us know. WNTR should include more type checking in general. We'll work on that for the next release.

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

No branches or pull requests

2 participants