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

load_graphml: data['oneway'] is always True #42

Closed
ptitjano opened this issue Mar 21, 2017 · 1 comment
Closed

load_graphml: data['oneway'] is always True #42

ptitjano opened this issue Mar 21, 2017 · 1 comment
Labels

Comments

@ptitjano
Copy link

Hi,

I have noticed one problem with load_graphml.
data['one_way'] is always True in the loaded graph.

The error comes from line 218 from save_load.py

data['oneway'] = bool(data['oneway'])

should be replaced with

data['oneway'] = ast.literal_eval(data['oneway'])

because non-empty strings are always True in python.

@gboeing gboeing added the bug label Mar 21, 2017
@ptitjano
Copy link
Author

Thanks!

gboeing added a commit that referenced this issue Jul 22, 2017
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

2 participants