{"action":"reopened","issue":{"url":"https://api.github.com/repos/gerrymandr/spanning_trees/issues/2","repository_url":"https://api.github.com/repos/gerrymandr/spanning_trees","labels_url":"https://api.github.com/repos/gerrymandr/spanning_trees/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/gerrymandr/spanning_trees/issues/2/comments","events_url":"https://api.github.com/repos/gerrymandr/spanning_trees/issues/2/events","html_url":"https://github.com/gerrymandr/spanning_trees/issues/2","id":343229437,"node_id":"MDU6SXNzdWUzNDMyMjk0Mzc=","number":2,"title":"Small type error","user":{"login":"Untellable","id":25728939,"node_id":"MDQ6VXNlcjI1NzI4OTM5","avatar_url":"https://avatars3.githubusercontent.com/u/25728939?v=4","gravatar_id":"","url":"https://api.github.com/users/Untellable","html_url":"https://github.com/Untellable","followers_url":"https://api.github.com/users/Untellable/followers","following_url":"https://api.github.com/users/Untellable/following{/other_user}","gists_url":"https://api.github.com/users/Untellable/gists{/gist_id}","starred_url":"https://api.github.com/users/Untellable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Untellable/subscriptions","organizations_url":"https://api.github.com/users/Untellable/orgs","repos_url":"https://api.github.com/users/Untellable/repos","events_url":"https://api.github.com/users/Untellable/events{/privacy}","received_events_url":"https://api.github.com/users/Untellable/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"LorenzoNajt","id":26446393,"node_id":"MDQ6VXNlcjI2NDQ2Mzkz","avatar_url":"https://avatars0.githubusercontent.com/u/26446393?v=4","gravatar_id":"","url":"https://api.github.com/users/LorenzoNajt","html_url":"https://github.com/LorenzoNajt","followers_url":"https://api.github.com/users/LorenzoNajt/followers","following_url":"https://api.github.com/users/LorenzoNajt/following{/other_user}","gists_url":"https://api.github.com/users/LorenzoNajt/gists{/gist_id}","starred_url":"https://api.github.com/users/LorenzoNajt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LorenzoNajt/subscriptions","organizations_url":"https://api.github.com/users/LorenzoNajt/orgs","repos_url":"https://api.github.com/users/LorenzoNajt/repos","events_url":"https://api.github.com/users/LorenzoNajt/events{/privacy}","received_events_url":"https://api.github.com/users/LorenzoNajt/received_events","type":"User","site_admin":false},"assignees":[{"login":"LorenzoNajt","id":26446393,"node_id":"MDQ6VXNlcjI2NDQ2Mzkz","avatar_url":"https://avatars0.githubusercontent.com/u/26446393?v=4","gravatar_id":"","url":"https://api.github.com/users/LorenzoNajt","html_url":"https://github.com/LorenzoNajt","followers_url":"https://api.github.com/users/LorenzoNajt/followers","following_url":"https://api.github.com/users/LorenzoNajt/following{/other_user}","gists_url":"https://api.github.com/users/LorenzoNajt/gists{/gist_id}","starred_url":"https://api.github.com/users/LorenzoNajt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LorenzoNajt/subscriptions","organizations_url":"https://api.github.com/users/LorenzoNajt/orgs","repos_url":"https://api.github.com/users/LorenzoNajt/repos","events_url":"https://api.github.com/users/LorenzoNajt/events{/privacy}","received_events_url":"https://api.github.com/users/LorenzoNajt/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-07-20T19:56:24Z","updated_at":"2018-07-27T15:32:04Z","closed_at":null,"author_association":"NONE","body":"In equi_partition_tools.py, in the choose_best_weight function, line 193 there is the line: \r\n    tree_nodes = list( set(tree.nodes()).difference( set( tree.graph[\"root\"])) )\r\nwhich throws the error: \"'int' object is not iterable\" because tree.graph[\"root\"] is an int. Simply throwing brackets around it like this solves the problem: \r\n    tree_nodes = list( set(tree.nodes()).difference( set( [tree.graph[\"root\"]])) )"}}
{"actor":{"display_login":"LorenzoNajt"}}