{"action":"created","comment":{"url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/pulls/comments/61178455","id":61178455,"diff_hunk":"@@ -531,27 +550,33 @@ def _validate_cnet(cnet):\n             if merged_cnet is None:\n                 merged_cnet = cnet.copy(deep=True)\n             else:\n-                pid_offset = merged_cnet['pid'].max() + 1  # Get the current max point index\n+                # Get the current max point index\n+                pid_offset = merged_cnet['pid'].max() + 1\n                 cnet[['pid']] += pid_offset\n \n                 # Inner merge on the dataframe identifies common points\n-                common = pd.merge(merged_cnet, cnet, how='inner', on='idx', left_index=True, suffixes=['_r',\n-                                                                                                      '_l'])\n+                common = pd.merge(merged_cnet, cnet, how='inner', on='idx',\n+                                  left_index=True, suffixes=['_r', '_l'])\n \n                 # Iterate over the points to be merged and merge them in.\n                 for i, r in common.iterrows():\n                     new_pid = r['pid_r']\n                     update_pid = r['pid_l']\n-                    cnet.loc[cnet['pid'] == update_pid, ['pid']] = new_pid  # Update the point ids\n+                    cnet.loc[\n+                        cnet['pid'] == update_pid,\n+                        ['pid']] = new_pid  # Update the point ids","path":"autocnet/graph/network.py","position":230,"original_position":230,"commit_id":"167ebad57d6b04f204141c9404fc07b7ad32ca35","original_commit_id":"167ebad57d6b04f204141c9404fc07b7ad32ca35","user":{"login":"kree","id":58957,"avatar_url":"https://avatars.githubusercontent.com/u/58957?v=3","gravatar_id":"","url":"https://api.github.com/users/kree","html_url":"https://github.com/kree","followers_url":"https://api.github.com/users/kree/followers","following_url":"https://api.github.com/users/kree/following{/other_user}","gists_url":"https://api.github.com/users/kree/gists{/gist_id}","starred_url":"https://api.github.com/users/kree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kree/subscriptions","organizations_url":"https://api.github.com/users/kree/orgs","repos_url":"https://api.github.com/users/kree/repos","events_url":"https://api.github.com/users/kree/events{/privacy}","received_events_url":"https://api.github.com/users/kree/received_events","type":"User","site_admin":false},"body":"This is also harder to read (although the original line 545 is also a bit confusing.) ","created_at":"2016-04-26T22:53:02Z","updated_at":"2016-04-26T22:53:02Z","html_url":"https://github.com/USGS-Astrogeology/autocnet/pull/108#discussion_r61178455","pull_request_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/pulls/108","_links":{"self":{"href":"https://api.github.com/repos/USGS-Astrogeology/autocnet/pulls/comments/61178455"},"html":{"href":"https://github.com/USGS-Astrogeology/autocnet/pull/108#discussion_r61178455"},"pull_request":{"href":"https://api.github.com/repos/USGS-Astrogeology/autocnet/pulls/108"}}},"pull_request":{"url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/pulls/108","id":67927068,"html_url":"https://github.com/USGS-Astrogeology/autocnet/pull/108","diff_url":"https://github.com/USGS-Astrogeology/autocnet/pull/108.diff","patch_url":"https://github.com/USGS-Astrogeology/autocnet/pull/108.patch","issue_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/issues/108","number":108,"state":"open","locked":false,"title":"Made both the graph and matcher directories pep8 complaint","user":{"login":"acpaquette","id":17728237,"avatar_url":"https://avatars.githubusercontent.com/u/17728237?v=3","gravatar_id":"","url":"https://api.github.com/users/acpaquette","html_url":"https://github.com/acpaquette","followers_url":"https://api.github.com/users/acpaquette/followers","following_url":"https://api.github.com/users/acpaquette/following{/other_user}","gists_url":"https://api.github.com/users/acpaquette/gists{/gist_id}","starred_url":"https://api.github.com/users/acpaquette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acpaquette/subscriptions","organizations_url":"https://api.github.com/users/acpaquette/orgs","repos_url":"https://api.github.com/users/acpaquette/repos","events_url":"https://api.github.com/users/acpaquette/events{/privacy}","received_events_url":"https://api.github.com/users/acpaquette/received_events","type":"User","site_admin":false},"body":"Iignoring line length, conditional statements, and unused variables.","created_at":"2016-04-26T17:36:31Z","updated_at":"2016-04-26T22:53:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e46fd9baa53da85ace182ecb5a6ef8698048ef29","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/pulls/108/commits","review_comments_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/pulls/108/comments","review_comment_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/issues/108/comments","statuses_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/statuses/167ebad57d6b04f204141c9404fc07b7ad32ca35","head":{"label":"acpaquette:pep8","ref":"pep8","sha":"167ebad57d6b04f204141c9404fc07b7ad32ca35","user":{"login":"acpaquette","id":17728237,"avatar_url":"https://avatars.githubusercontent.com/u/17728237?v=3","gravatar_id":"","url":"https://api.github.com/users/acpaquette","html_url":"https://github.com/acpaquette","followers_url":"https://api.github.com/users/acpaquette/followers","following_url":"https://api.github.com/users/acpaquette/following{/other_user}","gists_url":"https://api.github.com/users/acpaquette/gists{/gist_id}","starred_url":"https://api.github.com/users/acpaquette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acpaquette/subscriptions","organizations_url":"https://api.github.com/users/acpaquette/orgs","repos_url":"https://api.github.com/users/acpaquette/repos","events_url":"https://api.github.com/users/acpaquette/events{/privacy}","received_events_url":"https://api.github.com/users/acpaquette/received_events","type":"User","site_admin":false},"repo":{"id":53437075,"name":"autocnet","full_name":"acpaquette/autocnet","owner":{"login":"acpaquette","id":17728237,"avatar_url":"https://avatars.githubusercontent.com/u/17728237?v=3","gravatar_id":"","url":"https://api.github.com/users/acpaquette","html_url":"https://github.com/acpaquette","followers_url":"https://api.github.com/users/acpaquette/followers","following_url":"https://api.github.com/users/acpaquette/following{/other_user}","gists_url":"https://api.github.com/users/acpaquette/gists{/gist_id}","starred_url":"https://api.github.com/users/acpaquette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acpaquette/subscriptions","organizations_url":"https://api.github.com/users/acpaquette/orgs","repos_url":"https://api.github.com/users/acpaquette/repos","events_url":"https://api.github.com/users/acpaquette/events{/privacy}","received_events_url":"https://api.github.com/users/acpaquette/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/acpaquette/autocnet","description":"Automatic control network generation","fork":true,"url":"https://api.github.com/repos/acpaquette/autocnet","forks_url":"https://api.github.com/repos/acpaquette/autocnet/forks","keys_url":"https://api.github.com/repos/acpaquette/autocnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acpaquette/autocnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acpaquette/autocnet/teams","hooks_url":"https://api.github.com/repos/acpaquette/autocnet/hooks","issue_events_url":"https://api.github.com/repos/acpaquette/autocnet/issues/events{/number}","events_url":"https://api.github.com/repos/acpaquette/autocnet/events","assignees_url":"https://api.github.com/repos/acpaquette/autocnet/assignees{/user}","branches_url":"https://api.github.com/repos/acpaquette/autocnet/branches{/branch}","tags_url":"https://api.github.com/repos/acpaquette/autocnet/tags","blobs_url":"https://api.github.com/repos/acpaquette/autocnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acpaquette/autocnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acpaquette/autocnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/acpaquette/autocnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acpaquette/autocnet/statuses/{sha}","languages_url":"https://api.github.com/repos/acpaquette/autocnet/languages","stargazers_url":"https://api.github.com/repos/acpaquette/autocnet/stargazers","contributors_url":"https://api.github.com/repos/acpaquette/autocnet/contributors","subscribers_url":"https://api.github.com/repos/acpaquette/autocnet/subscribers","subscription_url":"https://api.github.com/repos/acpaquette/autocnet/subscription","commits_url":"https://api.github.com/repos/acpaquette/autocnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/acpaquette/autocnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/acpaquette/autocnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/acpaquette/autocnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/acpaquette/autocnet/contents/{+path}","compare_url":"https://api.github.com/repos/acpaquette/autocnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acpaquette/autocnet/merges","archive_url":"https://api.github.com/repos/acpaquette/autocnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acpaquette/autocnet/downloads","issues_url":"https://api.github.com/repos/acpaquette/autocnet/issues{/number}","pulls_url":"https://api.github.com/repos/acpaquette/autocnet/pulls{/number}","milestones_url":"https://api.github.com/repos/acpaquette/autocnet/milestones{/number}","notifications_url":"https://api.github.com/repos/acpaquette/autocnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acpaquette/autocnet/labels{/name}","releases_url":"https://api.github.com/repos/acpaquette/autocnet/releases{/id}","deployments_url":"https://api.github.com/repos/acpaquette/autocnet/deployments","created_at":"2016-03-08T18:55:43Z","updated_at":"2016-03-08T18:55:44Z","pushed_at":"2016-04-26T17:43:03Z","git_url":"git://github.com/acpaquette/autocnet.git","ssh_url":"git@github.com:acpaquette/autocnet.git","clone_url":"https://github.com/acpaquette/autocnet.git","svn_url":"https://github.com/acpaquette/autocnet","homepage":null,"size":26268,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"USGS-Astrogeology:dev","ref":"dev","sha":"0e1240b8190718c4036acd08d214705c65116d6b","user":{"login":"USGS-Astrogeology","id":8268981,"avatar_url":"https://avatars.githubusercontent.com/u/8268981?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-Astrogeology","html_url":"https://github.com/USGS-Astrogeology","followers_url":"https://api.github.com/users/USGS-Astrogeology/followers","following_url":"https://api.github.com/users/USGS-Astrogeology/following{/other_user}","gists_url":"https://api.github.com/users/USGS-Astrogeology/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-Astrogeology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-Astrogeology/subscriptions","organizations_url":"https://api.github.com/users/USGS-Astrogeology/orgs","repos_url":"https://api.github.com/users/USGS-Astrogeology/repos","events_url":"https://api.github.com/users/USGS-Astrogeology/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-Astrogeology/received_events","type":"Organization","site_admin":false},"repo":{"id":47575736,"name":"autocnet","full_name":"USGS-Astrogeology/autocnet","owner":{"login":"USGS-Astrogeology","id":8268981,"avatar_url":"https://avatars.githubusercontent.com/u/8268981?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-Astrogeology","html_url":"https://github.com/USGS-Astrogeology","followers_url":"https://api.github.com/users/USGS-Astrogeology/followers","following_url":"https://api.github.com/users/USGS-Astrogeology/following{/other_user}","gists_url":"https://api.github.com/users/USGS-Astrogeology/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-Astrogeology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-Astrogeology/subscriptions","organizations_url":"https://api.github.com/users/USGS-Astrogeology/orgs","repos_url":"https://api.github.com/users/USGS-Astrogeology/repos","events_url":"https://api.github.com/users/USGS-Astrogeology/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-Astrogeology/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/USGS-Astrogeology/autocnet","description":"Automatic control network generation","fork":false,"url":"https://api.github.com/repos/USGS-Astrogeology/autocnet","forks_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/forks","keys_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/teams","hooks_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/hooks","issue_events_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/issues/events{/number}","events_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/events","assignees_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/assignees{/user}","branches_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/branches{/branch}","tags_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/tags","blobs_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/statuses/{sha}","languages_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/languages","stargazers_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/stargazers","contributors_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/contributors","subscribers_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/subscribers","subscription_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/subscription","commits_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/contents/{+path}","compare_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/merges","archive_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/downloads","issues_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/issues{/number}","pulls_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/pulls{/number}","milestones_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/milestones{/number}","notifications_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/labels{/name}","releases_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/releases{/id}","deployments_url":"https://api.github.com/repos/USGS-Astrogeology/autocnet/deployments","created_at":"2015-12-07T19:57:04Z","updated_at":"2016-01-12T17:15:16Z","pushed_at":"2016-04-26T22:52:33Z","git_url":"git://github.com/USGS-Astrogeology/autocnet.git","ssh_url":"git@github.com:USGS-Astrogeology/autocnet.git","clone_url":"https://github.com/USGS-Astrogeology/autocnet.git","svn_url":"https://github.com/USGS-Astrogeology/autocnet","homepage":null,"size":32952,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":5,"forks":10,"open_issues":5,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/USGS-Astrogeology/autocnet/pulls/108"},"html":{"href":"https://github.com/USGS-Astrogeology/autocnet/pull/108"},"issue":{"href":"https://api.github.com/repos/USGS-Astrogeology/autocnet/issues/108"},"comments":{"href":"https://api.github.com/repos/USGS-Astrogeology/autocnet/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/USGS-Astrogeology/autocnet/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/USGS-Astrogeology/autocnet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/USGS-Astrogeology/autocnet/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/USGS-Astrogeology/autocnet/statuses/167ebad57d6b04f204141c9404fc07b7ad32ca35"}}}}