{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/pulls/2","id":97191743,"html_url":"https://github.com/reedessick/SegDB2GraceDB/pull/2","diff_url":"https://github.com/reedessick/SegDB2GraceDB/pull/2.diff","patch_url":"https://github.com/reedessick/SegDB2GraceDB/pull/2.patch","issue_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/issues/2","number":2,"state":"open","locked":false,"title":"Refactor","user":{"login":"cpankow","id":5060774,"avatar_url":"https://avatars.githubusercontent.com/u/5060774?v=3","gravatar_id":"","url":"https://api.github.com/users/cpankow","html_url":"https://github.com/cpankow","followers_url":"https://api.github.com/users/cpankow/followers","following_url":"https://api.github.com/users/cpankow/following{/other_user}","gists_url":"https://api.github.com/users/cpankow/gists{/gist_id}","starred_url":"https://api.github.com/users/cpankow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpankow/subscriptions","organizations_url":"https://api.github.com/users/cpankow/orgs","repos_url":"https://api.github.com/users/cpankow/repos","events_url":"https://api.github.com/users/cpankow/events{/privacy}","received_events_url":"https://api.github.com/users/cpankow/received_events","type":"User","site_admin":false},"body":"I've refactored the `ligolw_segment_query_segdb` call to use the python [API](https://github.com/ligovirgo/dqsegdb). I've also written out the call to `ligolw_segment_query_segdb --dmt` to use a simplified file location and retrieval setup. A brief test shows that both work for a test gracedb event. Please review for clarity, efficiency, and any subtler bugs. I have *not* tested that the logging to gracedb is identical to the previous incarnation.","created_at":"2016-12-08T20:09:56Z","updated_at":"2016-12-08T20:09:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/pulls/2/commits","review_comments_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/pulls/2/comments","review_comment_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/issues/2/comments","statuses_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/statuses/7e1903514c102316512fb2a4e9f70db5b3401e6f","head":{"label":"cpankow:refactor","ref":"refactor","sha":"7e1903514c102316512fb2a4e9f70db5b3401e6f","user":{"login":"cpankow","id":5060774,"avatar_url":"https://avatars.githubusercontent.com/u/5060774?v=3","gravatar_id":"","url":"https://api.github.com/users/cpankow","html_url":"https://github.com/cpankow","followers_url":"https://api.github.com/users/cpankow/followers","following_url":"https://api.github.com/users/cpankow/following{/other_user}","gists_url":"https://api.github.com/users/cpankow/gists{/gist_id}","starred_url":"https://api.github.com/users/cpankow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpankow/subscriptions","organizations_url":"https://api.github.com/users/cpankow/orgs","repos_url":"https://api.github.com/users/cpankow/repos","events_url":"https://api.github.com/users/cpankow/events{/privacy}","received_events_url":"https://api.github.com/users/cpankow/received_events","type":"User","site_admin":false},"repo":{"id":75971095,"name":"SegDB2GraceDB","full_name":"cpankow/SegDB2GraceDB","owner":{"login":"cpankow","id":5060774,"avatar_url":"https://avatars.githubusercontent.com/u/5060774?v=3","gravatar_id":"","url":"https://api.github.com/users/cpankow","html_url":"https://github.com/cpankow","followers_url":"https://api.github.com/users/cpankow/followers","following_url":"https://api.github.com/users/cpankow/following{/other_user}","gists_url":"https://api.github.com/users/cpankow/gists{/gist_id}","starred_url":"https://api.github.com/users/cpankow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpankow/subscriptions","organizations_url":"https://api.github.com/users/cpankow/orgs","repos_url":"https://api.github.com/users/cpankow/repos","events_url":"https://api.github.com/users/cpankow/events{/privacy}","received_events_url":"https://api.github.com/users/cpankow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cpankow/SegDB2GraceDB","description":null,"fork":true,"url":"https://api.github.com/repos/cpankow/SegDB2GraceDB","forks_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/forks","keys_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/teams","hooks_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/hooks","issue_events_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/issues/events{/number}","events_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/events","assignees_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/assignees{/user}","branches_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/branches{/branch}","tags_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/tags","blobs_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/git/refs{/sha}","trees_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/statuses/{sha}","languages_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/languages","stargazers_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/stargazers","contributors_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/contributors","subscribers_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/subscribers","subscription_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/subscription","commits_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/commits{/sha}","git_commits_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/git/commits{/sha}","comments_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/comments{/number}","issue_comment_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/issues/comments{/number}","contents_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/contents/{+path}","compare_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/merges","archive_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/downloads","issues_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/issues{/number}","pulls_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/pulls{/number}","milestones_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/milestones{/number}","notifications_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/labels{/name}","releases_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/releases{/id}","deployments_url":"https://api.github.com/repos/cpankow/SegDB2GraceDB/deployments","created_at":"2016-12-08T20:04:56Z","updated_at":"2016-12-08T20:04:58Z","pushed_at":"2016-12-08T20:08:39Z","git_url":"git://github.com/cpankow/SegDB2GraceDB.git","ssh_url":"git@github.com:cpankow/SegDB2GraceDB.git","clone_url":"https://github.com/cpankow/SegDB2GraceDB.git","svn_url":"https://github.com/cpankow/SegDB2GraceDB","homepage":null,"size":29,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"reedessick:master","ref":"master","sha":"83db9a78bb448e4b85e98ba26001a055de7fc937","user":{"login":"reedessick","id":7303933,"avatar_url":"https://avatars.githubusercontent.com/u/7303933?v=3","gravatar_id":"","url":"https://api.github.com/users/reedessick","html_url":"https://github.com/reedessick","followers_url":"https://api.github.com/users/reedessick/followers","following_url":"https://api.github.com/users/reedessick/following{/other_user}","gists_url":"https://api.github.com/users/reedessick/gists{/gist_id}","starred_url":"https://api.github.com/users/reedessick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reedessick/subscriptions","organizations_url":"https://api.github.com/users/reedessick/orgs","repos_url":"https://api.github.com/users/reedessick/repos","events_url":"https://api.github.com/users/reedessick/events{/privacy}","received_events_url":"https://api.github.com/users/reedessick/received_events","type":"User","site_admin":false},"repo":{"id":46184945,"name":"SegDB2GraceDB","full_name":"reedessick/SegDB2GraceDB","owner":{"login":"reedessick","id":7303933,"avatar_url":"https://avatars.githubusercontent.com/u/7303933?v=3","gravatar_id":"","url":"https://api.github.com/users/reedessick","html_url":"https://github.com/reedessick","followers_url":"https://api.github.com/users/reedessick/followers","following_url":"https://api.github.com/users/reedessick/following{/other_user}","gists_url":"https://api.github.com/users/reedessick/gists{/gist_id}","starred_url":"https://api.github.com/users/reedessick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reedessick/subscriptions","organizations_url":"https://api.github.com/users/reedessick/orgs","repos_url":"https://api.github.com/users/reedessick/repos","events_url":"https://api.github.com/users/reedessick/events{/privacy}","received_events_url":"https://api.github.com/users/reedessick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/reedessick/SegDB2GraceDB","description":null,"fork":false,"url":"https://api.github.com/repos/reedessick/SegDB2GraceDB","forks_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/forks","keys_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/teams","hooks_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/hooks","issue_events_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/issues/events{/number}","events_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/events","assignees_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/assignees{/user}","branches_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/branches{/branch}","tags_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/tags","blobs_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/git/refs{/sha}","trees_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/statuses/{sha}","languages_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/languages","stargazers_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/stargazers","contributors_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/contributors","subscribers_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/subscribers","subscription_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/subscription","commits_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/commits{/sha}","git_commits_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/git/commits{/sha}","comments_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/comments{/number}","issue_comment_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/issues/comments{/number}","contents_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/contents/{+path}","compare_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/merges","archive_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/downloads","issues_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/issues{/number}","pulls_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/pulls{/number}","milestones_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/milestones{/number}","notifications_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/labels{/name}","releases_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/releases{/id}","deployments_url":"https://api.github.com/repos/reedessick/SegDB2GraceDB/deployments","created_at":"2015-11-14T17:40:55Z","updated_at":"2016-02-05T19:25:27Z","pushed_at":"2016-11-30T20:10:37Z","git_url":"git://github.com/reedessick/SegDB2GraceDB.git","ssh_url":"git@github.com:reedessick/SegDB2GraceDB.git","clone_url":"https://github.com/reedessick/SegDB2GraceDB.git","svn_url":"https://github.com/reedessick/SegDB2GraceDB","homepage":null,"size":29,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reedessick/SegDB2GraceDB/pulls/2"},"html":{"href":"https://github.com/reedessick/SegDB2GraceDB/pull/2"},"issue":{"href":"https://api.github.com/repos/reedessick/SegDB2GraceDB/issues/2"},"comments":{"href":"https://api.github.com/repos/reedessick/SegDB2GraceDB/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/reedessick/SegDB2GraceDB/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/reedessick/SegDB2GraceDB/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reedessick/SegDB2GraceDB/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/reedessick/SegDB2GraceDB/statuses/7e1903514c102316512fb2a4e9f70db5b3401e6f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":125,"deletions":63,"changed_files":1}}
{"actor":{"display_login":"cpankow"}}