{"action":"opened","number":150,"pull_request":{"url":"https://api.github.com/repos/sncosmo/sncosmo/pulls/150","id":77538706,"html_url":"https://github.com/sncosmo/sncosmo/pull/150","diff_url":"https://github.com/sncosmo/sncosmo/pull/150.diff","patch_url":"https://github.com/sncosmo/sncosmo/pull/150.patch","issue_url":"https://api.github.com/repos/sncosmo/sncosmo/issues/150","number":150,"state":"open","locked":false,"title":"Make `mcmc_lc` accept log priors, not prior pdfs, to avoid underflow","user":{"login":"dannygoldstein","id":2769632,"avatar_url":"https://avatars.githubusercontent.com/u/2769632?v=3","gravatar_id":"","url":"https://api.github.com/users/dannygoldstein","html_url":"https://github.com/dannygoldstein","followers_url":"https://api.github.com/users/dannygoldstein/followers","following_url":"https://api.github.com/users/dannygoldstein/following{/other_user}","gists_url":"https://api.github.com/users/dannygoldstein/gists{/gist_id}","starred_url":"https://api.github.com/users/dannygoldstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dannygoldstein/subscriptions","organizations_url":"https://api.github.com/users/dannygoldstein/orgs","repos_url":"https://api.github.com/users/dannygoldstein/repos","events_url":"https://api.github.com/users/dannygoldstein/events{/privacy}","received_events_url":"https://api.github.com/users/dannygoldstein/received_events","type":"User","site_admin":false},"body":"This PR alters the interface of the `mcmc_lc` method, making its `priors` argument take a dictionary of functions that return the log prior, rather than the prior pdf. Reasons for doing this:\r\n\r\n- computing the log probability directly is often cheaper than computing the pdf and then taking the log \r\n\r\n- it avoids underflow (no situations where an exception will be raised by trying to take the log of 0)","created_at":"2016-07-14T22:47:06Z","updated_at":"2016-07-14T22:47:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sncosmo/sncosmo/pulls/150/commits","review_comments_url":"https://api.github.com/repos/sncosmo/sncosmo/pulls/150/comments","review_comment_url":"https://api.github.com/repos/sncosmo/sncosmo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sncosmo/sncosmo/issues/150/comments","statuses_url":"https://api.github.com/repos/sncosmo/sncosmo/statuses/9ee53d5bc46bc060a45f93d49b8f5dd7f680ae4c","head":{"label":"dannygoldstein:mcmc_logprior","ref":"mcmc_logprior","sha":"9ee53d5bc46bc060a45f93d49b8f5dd7f680ae4c","user":{"login":"dannygoldstein","id":2769632,"avatar_url":"https://avatars.githubusercontent.com/u/2769632?v=3","gravatar_id":"","url":"https://api.github.com/users/dannygoldstein","html_url":"https://github.com/dannygoldstein","followers_url":"https://api.github.com/users/dannygoldstein/followers","following_url":"https://api.github.com/users/dannygoldstein/following{/other_user}","gists_url":"https://api.github.com/users/dannygoldstein/gists{/gist_id}","starred_url":"https://api.github.com/users/dannygoldstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dannygoldstein/subscriptions","organizations_url":"https://api.github.com/users/dannygoldstein/orgs","repos_url":"https://api.github.com/users/dannygoldstein/repos","events_url":"https://api.github.com/users/dannygoldstein/events{/privacy}","received_events_url":"https://api.github.com/users/dannygoldstein/received_events","type":"User","site_admin":false},"repo":{"id":28198012,"name":"sncosmo","full_name":"dannygoldstein/sncosmo","owner":{"login":"dannygoldstein","id":2769632,"avatar_url":"https://avatars.githubusercontent.com/u/2769632?v=3","gravatar_id":"","url":"https://api.github.com/users/dannygoldstein","html_url":"https://github.com/dannygoldstein","followers_url":"https://api.github.com/users/dannygoldstein/followers","following_url":"https://api.github.com/users/dannygoldstein/following{/other_user}","gists_url":"https://api.github.com/users/dannygoldstein/gists{/gist_id}","starred_url":"https://api.github.com/users/dannygoldstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dannygoldstein/subscriptions","organizations_url":"https://api.github.com/users/dannygoldstein/orgs","repos_url":"https://api.github.com/users/dannygoldstein/repos","events_url":"https://api.github.com/users/dannygoldstein/events{/privacy}","received_events_url":"https://api.github.com/users/dannygoldstein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dannygoldstein/sncosmo","description":"Python library for supernova cosmology","fork":true,"url":"https://api.github.com/repos/dannygoldstein/sncosmo","forks_url":"https://api.github.com/repos/dannygoldstein/sncosmo/forks","keys_url":"https://api.github.com/repos/dannygoldstein/sncosmo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dannygoldstein/sncosmo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dannygoldstein/sncosmo/teams","hooks_url":"https://api.github.com/repos/dannygoldstein/sncosmo/hooks","issue_events_url":"https://api.github.com/repos/dannygoldstein/sncosmo/issues/events{/number}","events_url":"https://api.github.com/repos/dannygoldstein/sncosmo/events","assignees_url":"https://api.github.com/repos/dannygoldstein/sncosmo/assignees{/user}","branches_url":"https://api.github.com/repos/dannygoldstein/sncosmo/branches{/branch}","tags_url":"https://api.github.com/repos/dannygoldstein/sncosmo/tags","blobs_url":"https://api.github.com/repos/dannygoldstein/sncosmo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dannygoldstein/sncosmo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dannygoldstein/sncosmo/git/refs{/sha}","trees_url":"https://api.github.com/repos/dannygoldstein/sncosmo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dannygoldstein/sncosmo/statuses/{sha}","languages_url":"https://api.github.com/repos/dannygoldstein/sncosmo/languages","stargazers_url":"https://api.github.com/repos/dannygoldstein/sncosmo/stargazers","contributors_url":"https://api.github.com/repos/dannygoldstein/sncosmo/contributors","subscribers_url":"https://api.github.com/repos/dannygoldstein/sncosmo/subscribers","subscription_url":"https://api.github.com/repos/dannygoldstein/sncosmo/subscription","commits_url":"https://api.github.com/repos/dannygoldstein/sncosmo/commits{/sha}","git_commits_url":"https://api.github.com/repos/dannygoldstein/sncosmo/git/commits{/sha}","comments_url":"https://api.github.com/repos/dannygoldstein/sncosmo/comments{/number}","issue_comment_url":"https://api.github.com/repos/dannygoldstein/sncosmo/issues/comments{/number}","contents_url":"https://api.github.com/repos/dannygoldstein/sncosmo/contents/{+path}","compare_url":"https://api.github.com/repos/dannygoldstein/sncosmo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dannygoldstein/sncosmo/merges","archive_url":"https://api.github.com/repos/dannygoldstein/sncosmo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dannygoldstein/sncosmo/downloads","issues_url":"https://api.github.com/repos/dannygoldstein/sncosmo/issues{/number}","pulls_url":"https://api.github.com/repos/dannygoldstein/sncosmo/pulls{/number}","milestones_url":"https://api.github.com/repos/dannygoldstein/sncosmo/milestones{/number}","notifications_url":"https://api.github.com/repos/dannygoldstein/sncosmo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dannygoldstein/sncosmo/labels{/name}","releases_url":"https://api.github.com/repos/dannygoldstein/sncosmo/releases{/id}","deployments_url":"https://api.github.com/repos/dannygoldstein/sncosmo/deployments","created_at":"2014-12-18T19:23:57Z","updated_at":"2016-07-02T00:55:52Z","pushed_at":"2016-07-14T22:36:08Z","git_url":"git://github.com/dannygoldstein/sncosmo.git","ssh_url":"git@github.com:dannygoldstein/sncosmo.git","clone_url":"https://github.com/dannygoldstein/sncosmo.git","svn_url":"https://github.com/dannygoldstein/sncosmo","homepage":"","size":2087,"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":"sncosmo:master","ref":"master","sha":"2addbbf9f056280df6a1b2fb9a725bb91e187770","user":{"login":"sncosmo","id":5490746,"avatar_url":"https://avatars.githubusercontent.com/u/5490746?v=3","gravatar_id":"","url":"https://api.github.com/users/sncosmo","html_url":"https://github.com/sncosmo","followers_url":"https://api.github.com/users/sncosmo/followers","following_url":"https://api.github.com/users/sncosmo/following{/other_user}","gists_url":"https://api.github.com/users/sncosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/sncosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sncosmo/subscriptions","organizations_url":"https://api.github.com/users/sncosmo/orgs","repos_url":"https://api.github.com/users/sncosmo/repos","events_url":"https://api.github.com/users/sncosmo/events{/privacy}","received_events_url":"https://api.github.com/users/sncosmo/received_events","type":"Organization","site_admin":false},"repo":{"id":6929568,"name":"sncosmo","full_name":"sncosmo/sncosmo","owner":{"login":"sncosmo","id":5490746,"avatar_url":"https://avatars.githubusercontent.com/u/5490746?v=3","gravatar_id":"","url":"https://api.github.com/users/sncosmo","html_url":"https://github.com/sncosmo","followers_url":"https://api.github.com/users/sncosmo/followers","following_url":"https://api.github.com/users/sncosmo/following{/other_user}","gists_url":"https://api.github.com/users/sncosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/sncosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sncosmo/subscriptions","organizations_url":"https://api.github.com/users/sncosmo/orgs","repos_url":"https://api.github.com/users/sncosmo/repos","events_url":"https://api.github.com/users/sncosmo/events{/privacy}","received_events_url":"https://api.github.com/users/sncosmo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sncosmo/sncosmo","description":"Python library for supernova cosmology","fork":false,"url":"https://api.github.com/repos/sncosmo/sncosmo","forks_url":"https://api.github.com/repos/sncosmo/sncosmo/forks","keys_url":"https://api.github.com/repos/sncosmo/sncosmo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sncosmo/sncosmo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sncosmo/sncosmo/teams","hooks_url":"https://api.github.com/repos/sncosmo/sncosmo/hooks","issue_events_url":"https://api.github.com/repos/sncosmo/sncosmo/issues/events{/number}","events_url":"https://api.github.com/repos/sncosmo/sncosmo/events","assignees_url":"https://api.github.com/repos/sncosmo/sncosmo/assignees{/user}","branches_url":"https://api.github.com/repos/sncosmo/sncosmo/branches{/branch}","tags_url":"https://api.github.com/repos/sncosmo/sncosmo/tags","blobs_url":"https://api.github.com/repos/sncosmo/sncosmo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sncosmo/sncosmo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sncosmo/sncosmo/git/refs{/sha}","trees_url":"https://api.github.com/repos/sncosmo/sncosmo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sncosmo/sncosmo/statuses/{sha}","languages_url":"https://api.github.com/repos/sncosmo/sncosmo/languages","stargazers_url":"https://api.github.com/repos/sncosmo/sncosmo/stargazers","contributors_url":"https://api.github.com/repos/sncosmo/sncosmo/contributors","subscribers_url":"https://api.github.com/repos/sncosmo/sncosmo/subscribers","subscription_url":"https://api.github.com/repos/sncosmo/sncosmo/subscription","commits_url":"https://api.github.com/repos/sncosmo/sncosmo/commits{/sha}","git_commits_url":"https://api.github.com/repos/sncosmo/sncosmo/git/commits{/sha}","comments_url":"https://api.github.com/repos/sncosmo/sncosmo/comments{/number}","issue_comment_url":"https://api.github.com/repos/sncosmo/sncosmo/issues/comments{/number}","contents_url":"https://api.github.com/repos/sncosmo/sncosmo/contents/{+path}","compare_url":"https://api.github.com/repos/sncosmo/sncosmo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sncosmo/sncosmo/merges","archive_url":"https://api.github.com/repos/sncosmo/sncosmo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sncosmo/sncosmo/downloads","issues_url":"https://api.github.com/repos/sncosmo/sncosmo/issues{/number}","pulls_url":"https://api.github.com/repos/sncosmo/sncosmo/pulls{/number}","milestones_url":"https://api.github.com/repos/sncosmo/sncosmo/milestones{/number}","notifications_url":"https://api.github.com/repos/sncosmo/sncosmo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sncosmo/sncosmo/labels{/name}","releases_url":"https://api.github.com/repos/sncosmo/sncosmo/releases{/id}","deployments_url":"https://api.github.com/repos/sncosmo/sncosmo/deployments","created_at":"2012-11-29T22:22:17Z","updated_at":"2016-04-27T15:18:49Z","pushed_at":"2016-07-14T20:04:41Z","git_url":"git://github.com/sncosmo/sncosmo.git","ssh_url":"git@github.com:sncosmo/sncosmo.git","clone_url":"https://github.com/sncosmo/sncosmo.git","svn_url":"https://github.com/sncosmo/sncosmo","homepage":"","size":34508,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":26,"forks":26,"open_issues":26,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sncosmo/sncosmo/pulls/150"},"html":{"href":"https://github.com/sncosmo/sncosmo/pull/150"},"issue":{"href":"https://api.github.com/repos/sncosmo/sncosmo/issues/150"},"comments":{"href":"https://api.github.com/repos/sncosmo/sncosmo/issues/150/comments"},"review_comments":{"href":"https://api.github.com/repos/sncosmo/sncosmo/pulls/150/comments"},"review_comment":{"href":"https://api.github.com/repos/sncosmo/sncosmo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sncosmo/sncosmo/pulls/150/commits"},"statuses":{"href":"https://api.github.com/repos/sncosmo/sncosmo/statuses/9ee53d5bc46bc060a45f93d49b8f5dd7f680ae4c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":5,"additions":31,"deletions":10,"changed_files":2}}
{"actor":{"display_login":"dannygoldstein"}}