{"action":"opened","number":1233,"pull_request":{"url":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/1233","id":93629349,"html_url":"https://github.com/ligo-cbc/pycbc/pull/1233","diff_url":"https://github.com/ligo-cbc/pycbc/pull/1233.diff","patch_url":"https://github.com/ligo-cbc/pycbc/pull/1233.patch","issue_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/1233","number":1233,"state":"open","locked":false,"title":"Add ability to gate data to pycbc inference","user":{"login":"cdcapano","id":8258446,"avatar_url":"https://avatars.githubusercontent.com/u/8258446?v=3","gravatar_id":"","url":"https://api.github.com/users/cdcapano","html_url":"https://github.com/cdcapano","followers_url":"https://api.github.com/users/cdcapano/followers","following_url":"https://api.github.com/users/cdcapano/following{/other_user}","gists_url":"https://api.github.com/users/cdcapano/gists{/gist_id}","starred_url":"https://api.github.com/users/cdcapano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdcapano/subscriptions","organizations_url":"https://api.github.com/users/cdcapano/orgs","repos_url":"https://api.github.com/users/cdcapano/repos","events_url":"https://api.github.com/users/cdcapano/events{/privacy}","received_events_url":"https://api.github.com/users/cdcapano/received_events","type":"User","site_admin":false},"body":"This adds options to `pycbc_inference` to gate segments of data before analyzing. Both the data to be analyzed and the data used for PSD estimation may be gated. The data may be gated either before FFT-ing or after being overwhitened. I've found that doing the latter allows you to use a steep taper without incuring a bunch of noise. This is useful in case a significant signal occurs close to a glitch. It's also needed for the testing the area theorem paper, as we gate away the merger when doing PE on the insprial. Right now the gates are passed in by command line options. It's not very pretty. Not sure of a better way to do it though.\r\n\r\nThis patch also adds command line options to save the strain, PSD, and frequency domain strain to the output file. These are saved in similar groups as the PSD is currently. This means that the PSD will no longer be saved by default.\r\n\r\nFinally, this patch makes it so that an error will be raised if the output file already exists. This can be overridden with the `--force` command. I added this after accidentally blowing away a result file that took several hours to generate.","created_at":"2016-11-14T19:20:32Z","updated_at":"2016-11-14T19:20:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b102617088763dd2d8fc4ed58c1655dcea8b9114","assignee":{"login":"cmbiwer","id":10871764,"avatar_url":"https://avatars.githubusercontent.com/u/10871764?v=3","gravatar_id":"","url":"https://api.github.com/users/cmbiwer","html_url":"https://github.com/cmbiwer","followers_url":"https://api.github.com/users/cmbiwer/followers","following_url":"https://api.github.com/users/cmbiwer/following{/other_user}","gists_url":"https://api.github.com/users/cmbiwer/gists{/gist_id}","starred_url":"https://api.github.com/users/cmbiwer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmbiwer/subscriptions","organizations_url":"https://api.github.com/users/cmbiwer/orgs","repos_url":"https://api.github.com/users/cmbiwer/repos","events_url":"https://api.github.com/users/cmbiwer/events{/privacy}","received_events_url":"https://api.github.com/users/cmbiwer/received_events","type":"User","site_admin":false},"assignees":[{"login":"cmbiwer","id":10871764,"avatar_url":"https://avatars.githubusercontent.com/u/10871764?v=3","gravatar_id":"","url":"https://api.github.com/users/cmbiwer","html_url":"https://github.com/cmbiwer","followers_url":"https://api.github.com/users/cmbiwer/followers","following_url":"https://api.github.com/users/cmbiwer/following{/other_user}","gists_url":"https://api.github.com/users/cmbiwer/gists{/gist_id}","starred_url":"https://api.github.com/users/cmbiwer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmbiwer/subscriptions","organizations_url":"https://api.github.com/users/cmbiwer/orgs","repos_url":"https://api.github.com/users/cmbiwer/repos","events_url":"https://api.github.com/users/cmbiwer/events{/privacy}","received_events_url":"https://api.github.com/users/cmbiwer/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/1233/commits","review_comments_url":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/1233/comments","review_comment_url":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/1233/comments","statuses_url":"https://api.github.com/repos/ligo-cbc/pycbc/statuses/09d254aed5ef904db73e5e1e4ce3a79e59019dda","head":{"label":"cdcapano:inference_with_gates","ref":"inference_with_gates","sha":"09d254aed5ef904db73e5e1e4ce3a79e59019dda","user":{"login":"cdcapano","id":8258446,"avatar_url":"https://avatars.githubusercontent.com/u/8258446?v=3","gravatar_id":"","url":"https://api.github.com/users/cdcapano","html_url":"https://github.com/cdcapano","followers_url":"https://api.github.com/users/cdcapano/followers","following_url":"https://api.github.com/users/cdcapano/following{/other_user}","gists_url":"https://api.github.com/users/cdcapano/gists{/gist_id}","starred_url":"https://api.github.com/users/cdcapano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdcapano/subscriptions","organizations_url":"https://api.github.com/users/cdcapano/orgs","repos_url":"https://api.github.com/users/cdcapano/repos","events_url":"https://api.github.com/users/cdcapano/events{/privacy}","received_events_url":"https://api.github.com/users/cdcapano/received_events","type":"User","site_admin":false},"repo":{"id":35911309,"name":"pycbc","full_name":"cdcapano/pycbc","owner":{"login":"cdcapano","id":8258446,"avatar_url":"https://avatars.githubusercontent.com/u/8258446?v=3","gravatar_id":"","url":"https://api.github.com/users/cdcapano","html_url":"https://github.com/cdcapano","followers_url":"https://api.github.com/users/cdcapano/followers","following_url":"https://api.github.com/users/cdcapano/following{/other_user}","gists_url":"https://api.github.com/users/cdcapano/gists{/gist_id}","starred_url":"https://api.github.com/users/cdcapano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdcapano/subscriptions","organizations_url":"https://api.github.com/users/cdcapano/orgs","repos_url":"https://api.github.com/users/cdcapano/repos","events_url":"https://api.github.com/users/cdcapano/events{/privacy}","received_events_url":"https://api.github.com/users/cdcapano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cdcapano/pycbc","description":"Python CBC Tools","fork":true,"url":"https://api.github.com/repos/cdcapano/pycbc","forks_url":"https://api.github.com/repos/cdcapano/pycbc/forks","keys_url":"https://api.github.com/repos/cdcapano/pycbc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cdcapano/pycbc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cdcapano/pycbc/teams","hooks_url":"https://api.github.com/repos/cdcapano/pycbc/hooks","issue_events_url":"https://api.github.com/repos/cdcapano/pycbc/issues/events{/number}","events_url":"https://api.github.com/repos/cdcapano/pycbc/events","assignees_url":"https://api.github.com/repos/cdcapano/pycbc/assignees{/user}","branches_url":"https://api.github.com/repos/cdcapano/pycbc/branches{/branch}","tags_url":"https://api.github.com/repos/cdcapano/pycbc/tags","blobs_url":"https://api.github.com/repos/cdcapano/pycbc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cdcapano/pycbc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cdcapano/pycbc/git/refs{/sha}","trees_url":"https://api.github.com/repos/cdcapano/pycbc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cdcapano/pycbc/statuses/{sha}","languages_url":"https://api.github.com/repos/cdcapano/pycbc/languages","stargazers_url":"https://api.github.com/repos/cdcapano/pycbc/stargazers","contributors_url":"https://api.github.com/repos/cdcapano/pycbc/contributors","subscribers_url":"https://api.github.com/repos/cdcapano/pycbc/subscribers","subscription_url":"https://api.github.com/repos/cdcapano/pycbc/subscription","commits_url":"https://api.github.com/repos/cdcapano/pycbc/commits{/sha}","git_commits_url":"https://api.github.com/repos/cdcapano/pycbc/git/commits{/sha}","comments_url":"https://api.github.com/repos/cdcapano/pycbc/comments{/number}","issue_comment_url":"https://api.github.com/repos/cdcapano/pycbc/issues/comments{/number}","contents_url":"https://api.github.com/repos/cdcapano/pycbc/contents/{+path}","compare_url":"https://api.github.com/repos/cdcapano/pycbc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cdcapano/pycbc/merges","archive_url":"https://api.github.com/repos/cdcapano/pycbc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cdcapano/pycbc/downloads","issues_url":"https://api.github.com/repos/cdcapano/pycbc/issues{/number}","pulls_url":"https://api.github.com/repos/cdcapano/pycbc/pulls{/number}","milestones_url":"https://api.github.com/repos/cdcapano/pycbc/milestones{/number}","notifications_url":"https://api.github.com/repos/cdcapano/pycbc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cdcapano/pycbc/labels{/name}","releases_url":"https://api.github.com/repos/cdcapano/pycbc/releases{/id}","deployments_url":"https://api.github.com/repos/cdcapano/pycbc/deployments","created_at":"2015-05-19T22:10:56Z","updated_at":"2015-05-19T22:10:57Z","pushed_at":"2016-11-14T18:57:27Z","git_url":"git://github.com/cdcapano/pycbc.git","ssh_url":"git@github.com:cdcapano/pycbc.git","clone_url":"https://github.com/cdcapano/pycbc.git","svn_url":"https://github.com/cdcapano/pycbc","homepage":null,"size":28146,"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":"ligo-cbc:master","ref":"master","sha":"b3be99e22239d671ea8c03f9bd9967e68c049805","user":{"login":"ligo-cbc","id":11262917,"avatar_url":"https://avatars.githubusercontent.com/u/11262917?v=3","gravatar_id":"","url":"https://api.github.com/users/ligo-cbc","html_url":"https://github.com/ligo-cbc","followers_url":"https://api.github.com/users/ligo-cbc/followers","following_url":"https://api.github.com/users/ligo-cbc/following{/other_user}","gists_url":"https://api.github.com/users/ligo-cbc/gists{/gist_id}","starred_url":"https://api.github.com/users/ligo-cbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ligo-cbc/subscriptions","organizations_url":"https://api.github.com/users/ligo-cbc/orgs","repos_url":"https://api.github.com/users/ligo-cbc/repos","events_url":"https://api.github.com/users/ligo-cbc/events{/privacy}","received_events_url":"https://api.github.com/users/ligo-cbc/received_events","type":"Organization","site_admin":false},"repo":{"id":31596861,"name":"pycbc","full_name":"ligo-cbc/pycbc","owner":{"login":"ligo-cbc","id":11262917,"avatar_url":"https://avatars.githubusercontent.com/u/11262917?v=3","gravatar_id":"","url":"https://api.github.com/users/ligo-cbc","html_url":"https://github.com/ligo-cbc","followers_url":"https://api.github.com/users/ligo-cbc/followers","following_url":"https://api.github.com/users/ligo-cbc/following{/other_user}","gists_url":"https://api.github.com/users/ligo-cbc/gists{/gist_id}","starred_url":"https://api.github.com/users/ligo-cbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ligo-cbc/subscriptions","organizations_url":"https://api.github.com/users/ligo-cbc/orgs","repos_url":"https://api.github.com/users/ligo-cbc/repos","events_url":"https://api.github.com/users/ligo-cbc/events{/privacy}","received_events_url":"https://api.github.com/users/ligo-cbc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ligo-cbc/pycbc","description":"Python CBC Tools","fork":false,"url":"https://api.github.com/repos/ligo-cbc/pycbc","forks_url":"https://api.github.com/repos/ligo-cbc/pycbc/forks","keys_url":"https://api.github.com/repos/ligo-cbc/pycbc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ligo-cbc/pycbc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ligo-cbc/pycbc/teams","hooks_url":"https://api.github.com/repos/ligo-cbc/pycbc/hooks","issue_events_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/events{/number}","events_url":"https://api.github.com/repos/ligo-cbc/pycbc/events","assignees_url":"https://api.github.com/repos/ligo-cbc/pycbc/assignees{/user}","branches_url":"https://api.github.com/repos/ligo-cbc/pycbc/branches{/branch}","tags_url":"https://api.github.com/repos/ligo-cbc/pycbc/tags","blobs_url":"https://api.github.com/repos/ligo-cbc/pycbc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ligo-cbc/pycbc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ligo-cbc/pycbc/git/refs{/sha}","trees_url":"https://api.github.com/repos/ligo-cbc/pycbc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ligo-cbc/pycbc/statuses/{sha}","languages_url":"https://api.github.com/repos/ligo-cbc/pycbc/languages","stargazers_url":"https://api.github.com/repos/ligo-cbc/pycbc/stargazers","contributors_url":"https://api.github.com/repos/ligo-cbc/pycbc/contributors","subscribers_url":"https://api.github.com/repos/ligo-cbc/pycbc/subscribers","subscription_url":"https://api.github.com/repos/ligo-cbc/pycbc/subscription","commits_url":"https://api.github.com/repos/ligo-cbc/pycbc/commits{/sha}","git_commits_url":"https://api.github.com/repos/ligo-cbc/pycbc/git/commits{/sha}","comments_url":"https://api.github.com/repos/ligo-cbc/pycbc/comments{/number}","issue_comment_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/comments{/number}","contents_url":"https://api.github.com/repos/ligo-cbc/pycbc/contents/{+path}","compare_url":"https://api.github.com/repos/ligo-cbc/pycbc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ligo-cbc/pycbc/merges","archive_url":"https://api.github.com/repos/ligo-cbc/pycbc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ligo-cbc/pycbc/downloads","issues_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues{/number}","pulls_url":"https://api.github.com/repos/ligo-cbc/pycbc/pulls{/number}","milestones_url":"https://api.github.com/repos/ligo-cbc/pycbc/milestones{/number}","notifications_url":"https://api.github.com/repos/ligo-cbc/pycbc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ligo-cbc/pycbc/labels{/name}","releases_url":"https://api.github.com/repos/ligo-cbc/pycbc/releases{/id}","deployments_url":"https://api.github.com/repos/ligo-cbc/pycbc/deployments","created_at":"2015-03-03T12:19:19Z","updated_at":"2016-10-22T21:33:33Z","pushed_at":"2016-11-14T19:20:33Z","git_url":"git://github.com/ligo-cbc/pycbc.git","ssh_url":"git@github.com:ligo-cbc/pycbc.git","clone_url":"https://github.com/ligo-cbc/pycbc.git","svn_url":"https://github.com/ligo-cbc/pycbc","homepage":null,"size":197658,"stargazers_count":46,"watchers_count":46,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":90,"mirror_url":null,"open_issues_count":32,"forks":90,"open_issues":32,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/1233"},"html":{"href":"https://github.com/ligo-cbc/pycbc/pull/1233"},"issue":{"href":"https://api.github.com/repos/ligo-cbc/pycbc/issues/1233"},"comments":{"href":"https://api.github.com/repos/ligo-cbc/pycbc/issues/1233/comments"},"review_comments":{"href":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/1233/comments"},"review_comment":{"href":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/1233/commits"},"statuses":{"href":"https://api.github.com/repos/ligo-cbc/pycbc/statuses/09d254aed5ef904db73e5e1e4ce3a79e59019dda"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":204,"deletions":10,"changed_files":2}}
{"actor":{"display_login":"cdcapano"}}