{"action":"created","comment":{"url":"https://api.github.com/repos/choderalab/yank/pulls/comments/79833447","id":79833447,"diff_hunk":"@@ -489,7 +492,14 @@ def _resolve_path(d, path):\n         The value contained in the node pointed by the path.\n \n         \"\"\"\n-        return reduce(lambda d,k: d[k], path, d)\n+        # TODO: Make sure this is working\n+        # Converted from old py 2.X `reduce` function\n+        function = lambda d,k: d[k]\n+        it = iter(path)\n+        accum_value = d\n+        for x in it:\n+            accum_value = function(accum_value, x)\n+        return accum_value","path":"Yank/utils.py","position":81,"original_position":81,"commit_id":"77724ad33790433e3a4a2b3f14b3feb62618edaa","original_commit_id":"77724ad33790433e3a4a2b3f14b3feb62618edaa","user":{"login":"Lnaden","id":3809383,"avatar_url":"https://avatars.githubusercontent.com/u/3809383?v=3","gravatar_id":"","url":"https://api.github.com/users/Lnaden","html_url":"https://github.com/Lnaden","followers_url":"https://api.github.com/users/Lnaden/followers","following_url":"https://api.github.com/users/Lnaden/following{/other_user}","gists_url":"https://api.github.com/users/Lnaden/gists{/gist_id}","starred_url":"https://api.github.com/users/Lnaden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lnaden/subscriptions","organizations_url":"https://api.github.com/users/Lnaden/orgs","repos_url":"https://api.github.com/users/Lnaden/repos","events_url":"https://api.github.com/users/Lnaden/events{/privacy}","received_events_url":"https://api.github.com/users/Lnaden/received_events","type":"User","site_admin":false},"body":"Will this function as originally intended?\r\n\r\n`reduce` was removed in Py3, the code here is the what the Py2 docs call the \"roughly equivalent\" code ","created_at":"2016-09-21T13:33:14Z","updated_at":"2016-09-21T13:33:14Z","html_url":"https://github.com/choderalab/yank/pull/488#discussion_r79833447","pull_request_url":"https://api.github.com/repos/choderalab/yank/pulls/488","_links":{"self":{"href":"https://api.github.com/repos/choderalab/yank/pulls/comments/79833447"},"html":{"href":"https://github.com/choderalab/yank/pull/488#discussion_r79833447"},"pull_request":{"href":"https://api.github.com/repos/choderalab/yank/pulls/488"}}},"pull_request":{"url":"https://api.github.com/repos/choderalab/yank/pulls/488","id":85250955,"html_url":"https://github.com/choderalab/yank/pull/488","diff_url":"https://github.com/choderalab/yank/pull/488.diff","patch_url":"https://github.com/choderalab/yank/pull/488.patch","issue_url":"https://api.github.com/repos/choderalab/yank/issues/488","number":488,"state":"open","locked":false,"title":"[WIP] Python 3.X compatability","user":{"login":"Lnaden","id":3809383,"avatar_url":"https://avatars.githubusercontent.com/u/3809383?v=3","gravatar_id":"","url":"https://api.github.com/users/Lnaden","html_url":"https://github.com/Lnaden","followers_url":"https://api.github.com/users/Lnaden/followers","following_url":"https://api.github.com/users/Lnaden/following{/other_user}","gists_url":"https://api.github.com/users/Lnaden/gists{/gist_id}","starred_url":"https://api.github.com/users/Lnaden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lnaden/subscriptions","organizations_url":"https://api.github.com/users/Lnaden/orgs","repos_url":"https://api.github.com/users/Lnaden/repos","events_url":"https://api.github.com/users/Lnaden/events{/privacy}","received_events_url":"https://api.github.com/users/Lnaden/received_events","type":"User","site_admin":false},"body":"This PR attempts to fix the code so that it compiles and can test on python 3.X. There are no new features in this PR beyond fixing the `print` functions. \r\n\r\nThere will probably need to be some changes to the travis tests to get it working correctly.","created_at":"2016-09-14T15:33:49Z","updated_at":"2016-09-21T13:40:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df3f826aab40379917e8a8e86416d73c9ab813ae","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/choderalab/yank/pulls/488/commits","review_comments_url":"https://api.github.com/repos/choderalab/yank/pulls/488/comments","review_comment_url":"https://api.github.com/repos/choderalab/yank/pulls/comments{/number}","comments_url":"https://api.github.com/repos/choderalab/yank/issues/488/comments","statuses_url":"https://api.github.com/repos/choderalab/yank/statuses/77724ad33790433e3a4a2b3f14b3feb62618edaa","head":{"label":"choderalab:yank3","ref":"yank3","sha":"77724ad33790433e3a4a2b3f14b3feb62618edaa","user":{"login":"choderalab","id":4217481,"avatar_url":"https://avatars.githubusercontent.com/u/4217481?v=3","gravatar_id":"","url":"https://api.github.com/users/choderalab","html_url":"https://github.com/choderalab","followers_url":"https://api.github.com/users/choderalab/followers","following_url":"https://api.github.com/users/choderalab/following{/other_user}","gists_url":"https://api.github.com/users/choderalab/gists{/gist_id}","starred_url":"https://api.github.com/users/choderalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choderalab/subscriptions","organizations_url":"https://api.github.com/users/choderalab/orgs","repos_url":"https://api.github.com/users/choderalab/repos","events_url":"https://api.github.com/users/choderalab/events{/privacy}","received_events_url":"https://api.github.com/users/choderalab/received_events","type":"Organization","site_admin":false},"repo":{"id":13779937,"name":"yank","full_name":"choderalab/yank","owner":{"login":"choderalab","id":4217481,"avatar_url":"https://avatars.githubusercontent.com/u/4217481?v=3","gravatar_id":"","url":"https://api.github.com/users/choderalab","html_url":"https://github.com/choderalab","followers_url":"https://api.github.com/users/choderalab/followers","following_url":"https://api.github.com/users/choderalab/following{/other_user}","gists_url":"https://api.github.com/users/choderalab/gists{/gist_id}","starred_url":"https://api.github.com/users/choderalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choderalab/subscriptions","organizations_url":"https://api.github.com/users/choderalab/orgs","repos_url":"https://api.github.com/users/choderalab/repos","events_url":"https://api.github.com/users/choderalab/events{/privacy}","received_events_url":"https://api.github.com/users/choderalab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/choderalab/yank","description":"GPU-accelerated calculation of ligand binding affinities in implicit and explicit solvent using alchemical free energy methodologies","fork":false,"url":"https://api.github.com/repos/choderalab/yank","forks_url":"https://api.github.com/repos/choderalab/yank/forks","keys_url":"https://api.github.com/repos/choderalab/yank/keys{/key_id}","collaborators_url":"https://api.github.com/repos/choderalab/yank/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/choderalab/yank/teams","hooks_url":"https://api.github.com/repos/choderalab/yank/hooks","issue_events_url":"https://api.github.com/repos/choderalab/yank/issues/events{/number}","events_url":"https://api.github.com/repos/choderalab/yank/events","assignees_url":"https://api.github.com/repos/choderalab/yank/assignees{/user}","branches_url":"https://api.github.com/repos/choderalab/yank/branches{/branch}","tags_url":"https://api.github.com/repos/choderalab/yank/tags","blobs_url":"https://api.github.com/repos/choderalab/yank/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/choderalab/yank/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/choderalab/yank/git/refs{/sha}","trees_url":"https://api.github.com/repos/choderalab/yank/git/trees{/sha}","statuses_url":"https://api.github.com/repos/choderalab/yank/statuses/{sha}","languages_url":"https://api.github.com/repos/choderalab/yank/languages","stargazers_url":"https://api.github.com/repos/choderalab/yank/stargazers","contributors_url":"https://api.github.com/repos/choderalab/yank/contributors","subscribers_url":"https://api.github.com/repos/choderalab/yank/subscribers","subscription_url":"https://api.github.com/repos/choderalab/yank/subscription","commits_url":"https://api.github.com/repos/choderalab/yank/commits{/sha}","git_commits_url":"https://api.github.com/repos/choderalab/yank/git/commits{/sha}","comments_url":"https://api.github.com/repos/choderalab/yank/comments{/number}","issue_comment_url":"https://api.github.com/repos/choderalab/yank/issues/comments{/number}","contents_url":"https://api.github.com/repos/choderalab/yank/contents/{+path}","compare_url":"https://api.github.com/repos/choderalab/yank/compare/{base}...{head}","merges_url":"https://api.github.com/repos/choderalab/yank/merges","archive_url":"https://api.github.com/repos/choderalab/yank/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/choderalab/yank/downloads","issues_url":"https://api.github.com/repos/choderalab/yank/issues{/number}","pulls_url":"https://api.github.com/repos/choderalab/yank/pulls{/number}","milestones_url":"https://api.github.com/repos/choderalab/yank/milestones{/number}","notifications_url":"https://api.github.com/repos/choderalab/yank/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/choderalab/yank/labels{/name}","releases_url":"https://api.github.com/repos/choderalab/yank/releases{/id}","deployments_url":"https://api.github.com/repos/choderalab/yank/deployments","created_at":"2013-10-22T17:01:36Z","updated_at":"2016-09-13T12:12:21Z","pushed_at":"2016-09-21T12:54:12Z","git_url":"git://github.com/choderalab/yank.git","ssh_url":"git@github.com:choderalab/yank.git","clone_url":"https://github.com/choderalab/yank.git","svn_url":"https://github.com/choderalab/yank","homepage":"http://getyank.org","size":48976,"stargazers_count":18,"watchers_count":18,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":138,"forks":21,"open_issues":138,"watchers":18,"default_branch":"master"}},"base":{"label":"choderalab:master","ref":"master","sha":"618a386c808d32a29efbcdfefe013add2b25dc5d","user":{"login":"choderalab","id":4217481,"avatar_url":"https://avatars.githubusercontent.com/u/4217481?v=3","gravatar_id":"","url":"https://api.github.com/users/choderalab","html_url":"https://github.com/choderalab","followers_url":"https://api.github.com/users/choderalab/followers","following_url":"https://api.github.com/users/choderalab/following{/other_user}","gists_url":"https://api.github.com/users/choderalab/gists{/gist_id}","starred_url":"https://api.github.com/users/choderalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choderalab/subscriptions","organizations_url":"https://api.github.com/users/choderalab/orgs","repos_url":"https://api.github.com/users/choderalab/repos","events_url":"https://api.github.com/users/choderalab/events{/privacy}","received_events_url":"https://api.github.com/users/choderalab/received_events","type":"Organization","site_admin":false},"repo":{"id":13779937,"name":"yank","full_name":"choderalab/yank","owner":{"login":"choderalab","id":4217481,"avatar_url":"https://avatars.githubusercontent.com/u/4217481?v=3","gravatar_id":"","url":"https://api.github.com/users/choderalab","html_url":"https://github.com/choderalab","followers_url":"https://api.github.com/users/choderalab/followers","following_url":"https://api.github.com/users/choderalab/following{/other_user}","gists_url":"https://api.github.com/users/choderalab/gists{/gist_id}","starred_url":"https://api.github.com/users/choderalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choderalab/subscriptions","organizations_url":"https://api.github.com/users/choderalab/orgs","repos_url":"https://api.github.com/users/choderalab/repos","events_url":"https://api.github.com/users/choderalab/events{/privacy}","received_events_url":"https://api.github.com/users/choderalab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/choderalab/yank","description":"GPU-accelerated calculation of ligand binding affinities in implicit and explicit solvent using alchemical free energy methodologies","fork":false,"url":"https://api.github.com/repos/choderalab/yank","forks_url":"https://api.github.com/repos/choderalab/yank/forks","keys_url":"https://api.github.com/repos/choderalab/yank/keys{/key_id}","collaborators_url":"https://api.github.com/repos/choderalab/yank/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/choderalab/yank/teams","hooks_url":"https://api.github.com/repos/choderalab/yank/hooks","issue_events_url":"https://api.github.com/repos/choderalab/yank/issues/events{/number}","events_url":"https://api.github.com/repos/choderalab/yank/events","assignees_url":"https://api.github.com/repos/choderalab/yank/assignees{/user}","branches_url":"https://api.github.com/repos/choderalab/yank/branches{/branch}","tags_url":"https://api.github.com/repos/choderalab/yank/tags","blobs_url":"https://api.github.com/repos/choderalab/yank/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/choderalab/yank/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/choderalab/yank/git/refs{/sha}","trees_url":"https://api.github.com/repos/choderalab/yank/git/trees{/sha}","statuses_url":"https://api.github.com/repos/choderalab/yank/statuses/{sha}","languages_url":"https://api.github.com/repos/choderalab/yank/languages","stargazers_url":"https://api.github.com/repos/choderalab/yank/stargazers","contributors_url":"https://api.github.com/repos/choderalab/yank/contributors","subscribers_url":"https://api.github.com/repos/choderalab/yank/subscribers","subscription_url":"https://api.github.com/repos/choderalab/yank/subscription","commits_url":"https://api.github.com/repos/choderalab/yank/commits{/sha}","git_commits_url":"https://api.github.com/repos/choderalab/yank/git/commits{/sha}","comments_url":"https://api.github.com/repos/choderalab/yank/comments{/number}","issue_comment_url":"https://api.github.com/repos/choderalab/yank/issues/comments{/number}","contents_url":"https://api.github.com/repos/choderalab/yank/contents/{+path}","compare_url":"https://api.github.com/repos/choderalab/yank/compare/{base}...{head}","merges_url":"https://api.github.com/repos/choderalab/yank/merges","archive_url":"https://api.github.com/repos/choderalab/yank/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/choderalab/yank/downloads","issues_url":"https://api.github.com/repos/choderalab/yank/issues{/number}","pulls_url":"https://api.github.com/repos/choderalab/yank/pulls{/number}","milestones_url":"https://api.github.com/repos/choderalab/yank/milestones{/number}","notifications_url":"https://api.github.com/repos/choderalab/yank/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/choderalab/yank/labels{/name}","releases_url":"https://api.github.com/repos/choderalab/yank/releases{/id}","deployments_url":"https://api.github.com/repos/choderalab/yank/deployments","created_at":"2013-10-22T17:01:36Z","updated_at":"2016-09-13T12:12:21Z","pushed_at":"2016-09-21T12:54:12Z","git_url":"git://github.com/choderalab/yank.git","ssh_url":"git@github.com:choderalab/yank.git","clone_url":"https://github.com/choderalab/yank.git","svn_url":"https://github.com/choderalab/yank","homepage":"http://getyank.org","size":48976,"stargazers_count":18,"watchers_count":18,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":138,"forks":21,"open_issues":138,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/choderalab/yank/pulls/488"},"html":{"href":"https://github.com/choderalab/yank/pull/488"},"issue":{"href":"https://api.github.com/repos/choderalab/yank/issues/488"},"comments":{"href":"https://api.github.com/repos/choderalab/yank/issues/488/comments"},"review_comments":{"href":"https://api.github.com/repos/choderalab/yank/pulls/488/comments"},"review_comment":{"href":"https://api.github.com/repos/choderalab/yank/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/choderalab/yank/pulls/488/commits"},"statuses":{"href":"https://api.github.com/repos/choderalab/yank/statuses/77724ad33790433e3a4a2b3f14b3feb62618edaa"}}}}
{"actor":{"display_login":"Lnaden"}}