{"action":"created","comment":{"url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/pulls/comments/269855084","pull_request_review_id":219829813,"id":269855084,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2OTg1NTA4NA==","diff_hunk":"@@ -33,6 +39,51 @@ def airy_disk(za_array, freqs, diameter=15.0, **kwargs):\n     return beam\n \n \n+def smooth_beam(freqs, beam_array, freq_ls=2.0, noise=1e-10, output_freqs=None):\n+    \"\"\"\n+    Smooth a beam across frequency using a Gaussian Process\n+\n+    Args:\n+        freqs : 1D ndarray\n+            Frequency array [Hz]\n+        beam_array : 2D ndarray\n+            Beam map with shape (Nfreqs, Npixels)\n+        freq_ls : float\n+            Frequency lengthscale to smooth at [MHz]\n+        noise : float\n+            Noise level. Ideally a small but nonzero value.\n+        output_freqs : 1D ndarray\n+            Prediction frequencies [Hz]. Default is training frequencies.\n+\n+    Returns:\n+        smooth_beam : 2D ndarray\n+            Smoothed beam\n+    \"\"\"\n+    assert sklearn_import, \"Couldn't import sklearn package. This is required to use beam smoothing functionality.\"\n+\n+    # setup kernel\n+    kernel = 1**2 * gp.kernels.RBF(freq_ls) + gp.kernels.WhiteKernel(noise)","path":"healvis/beam_model.py","position":40,"original_position":40,"commit_id":"1ff90084b2e5c4df8fcf768ac937e3de45f69c26","original_commit_id":"1ff90084b2e5c4df8fcf768ac937e3de45f69c26","user":{"login":"aelanman","id":12849618,"node_id":"MDQ6VXNlcjEyODQ5NjE4","avatar_url":"https://avatars3.githubusercontent.com/u/12849618?v=4","gravatar_id":"","url":"https://api.github.com/users/aelanman","html_url":"https://github.com/aelanman","followers_url":"https://api.github.com/users/aelanman/followers","following_url":"https://api.github.com/users/aelanman/following{/other_user}","gists_url":"https://api.github.com/users/aelanman/gists{/gist_id}","starred_url":"https://api.github.com/users/aelanman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aelanman/subscriptions","organizations_url":"https://api.github.com/users/aelanman/orgs","repos_url":"https://api.github.com/users/aelanman/repos","events_url":"https://api.github.com/users/aelanman/events{/privacy}","received_events_url":"https://api.github.com/users/aelanman/received_events","type":"User","site_admin":false},"body":"1**2 == 1?","created_at":"2019-03-28T04:40:11Z","updated_at":"2019-03-28T04:56:07Z","html_url":"https://github.com/RadioAstronomySoftwareGroup/healvis/pull/17#discussion_r269855084","pull_request_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/pulls/17","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/pulls/comments/269855084"},"html":{"href":"https://github.com/RadioAstronomySoftwareGroup/healvis/pull/17#discussion_r269855084"},"pull_request":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/pulls/17","id":264787693,"node_id":"MDExOlB1bGxSZXF1ZXN0MjY0Nzg3Njkz","html_url":"https://github.com/RadioAstronomySoftwareGroup/healvis/pull/17","diff_url":"https://github.com/RadioAstronomySoftwareGroup/healvis/pull/17.diff","patch_url":"https://github.com/RadioAstronomySoftwareGroup/healvis/pull/17.patch","issue_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/issues/17","number":17,"state":"open","locked":false,"title":"Update VERSION","user":{"login":"nkern","id":4307358,"node_id":"MDQ6VXNlcjQzMDczNTg=","avatar_url":"https://avatars0.githubusercontent.com/u/4307358?v=4","gravatar_id":"","url":"https://api.github.com/users/nkern","html_url":"https://github.com/nkern","followers_url":"https://api.github.com/users/nkern/followers","following_url":"https://api.github.com/users/nkern/following{/other_user}","gists_url":"https://api.github.com/users/nkern/gists{/gist_id}","starred_url":"https://api.github.com/users/nkern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkern/subscriptions","organizations_url":"https://api.github.com/users/nkern/orgs","repos_url":"https://api.github.com/users/nkern/repos","events_url":"https://api.github.com/users/nkern/events{/privacy}","received_events_url":"https://api.github.com/users/nkern/received_events","type":"User","site_admin":false},"body":"bump VERSION to 1.0.0, after which let's tag a v1.0.0 release.\r\n\r\nAlso adds a smoothing functionality to `PowerBeam` b/c non-smooth beams throws foreground power to high delays.","created_at":"2019-03-27T05:48:05Z","updated_at":"2019-03-28T04:56:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"525078cb09434d790485b3408a8c60441e6b4665","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/pulls/17/commits","review_comments_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/pulls/17/comments","review_comment_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/issues/17/comments","statuses_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/statuses/1ff90084b2e5c4df8fcf768ac937e3de45f69c26","head":{"label":"RadioAstronomySoftwareGroup:version1-bump","ref":"version1-bump","sha":"1ff90084b2e5c4df8fcf768ac937e3de45f69c26","user":{"login":"RadioAstronomySoftwareGroup","id":41453363,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNDUzMzYz","avatar_url":"https://avatars1.githubusercontent.com/u/41453363?v=4","gravatar_id":"","url":"https://api.github.com/users/RadioAstronomySoftwareGroup","html_url":"https://github.com/RadioAstronomySoftwareGroup","followers_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/followers","following_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/following{/other_user}","gists_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/subscriptions","organizations_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/orgs","repos_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/repos","events_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/events{/privacy}","received_events_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/received_events","type":"Organization","site_admin":false},"repo":{"id":166712630,"node_id":"MDEwOlJlcG9zaXRvcnkxNjY3MTI2MzA=","name":"healvis","full_name":"RadioAstronomySoftwareGroup/healvis","private":false,"owner":{"login":"RadioAstronomySoftwareGroup","id":41453363,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNDUzMzYz","avatar_url":"https://avatars1.githubusercontent.com/u/41453363?v=4","gravatar_id":"","url":"https://api.github.com/users/RadioAstronomySoftwareGroup","html_url":"https://github.com/RadioAstronomySoftwareGroup","followers_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/followers","following_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/following{/other_user}","gists_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/subscriptions","organizations_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/orgs","repos_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/repos","events_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/events{/privacy}","received_events_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/RadioAstronomySoftwareGroup/healvis","description":"Visibility simulation off of HEALPix shells.","fork":false,"url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis","forks_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/forks","keys_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/teams","hooks_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/hooks","issue_events_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/issues/events{/number}","events_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/events","assignees_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/assignees{/user}","branches_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/branches{/branch}","tags_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/tags","blobs_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/git/refs{/sha}","trees_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/statuses/{sha}","languages_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/languages","stargazers_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/stargazers","contributors_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/contributors","subscribers_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/subscribers","subscription_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/subscription","commits_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/commits{/sha}","git_commits_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/git/commits{/sha}","comments_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/comments{/number}","issue_comment_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/issues/comments{/number}","contents_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/contents/{+path}","compare_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/merges","archive_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/downloads","issues_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/issues{/number}","pulls_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/pulls{/number}","milestones_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/milestones{/number}","notifications_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/labels{/name}","releases_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/releases{/id}","deployments_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/deployments","created_at":"2019-01-20T21:43:26Z","updated_at":"2019-03-27T05:46:41Z","pushed_at":"2019-03-28T04:29:49Z","git_url":"git://github.com/RadioAstronomySoftwareGroup/healvis.git","ssh_url":"git@github.com:RadioAstronomySoftwareGroup/healvis.git","clone_url":"https://github.com/RadioAstronomySoftwareGroup/healvis.git","svn_url":"https://github.com/RadioAstronomySoftwareGroup/healvis","homepage":"","size":15746,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"RadioAstronomySoftwareGroup:master","ref":"master","sha":"564c4b5efd73caea1600fea2ee3a9e79fb4a6e07","user":{"login":"RadioAstronomySoftwareGroup","id":41453363,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNDUzMzYz","avatar_url":"https://avatars1.githubusercontent.com/u/41453363?v=4","gravatar_id":"","url":"https://api.github.com/users/RadioAstronomySoftwareGroup","html_url":"https://github.com/RadioAstronomySoftwareGroup","followers_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/followers","following_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/following{/other_user}","gists_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/subscriptions","organizations_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/orgs","repos_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/repos","events_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/events{/privacy}","received_events_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/received_events","type":"Organization","site_admin":false},"repo":{"id":166712630,"node_id":"MDEwOlJlcG9zaXRvcnkxNjY3MTI2MzA=","name":"healvis","full_name":"RadioAstronomySoftwareGroup/healvis","private":false,"owner":{"login":"RadioAstronomySoftwareGroup","id":41453363,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNDUzMzYz","avatar_url":"https://avatars1.githubusercontent.com/u/41453363?v=4","gravatar_id":"","url":"https://api.github.com/users/RadioAstronomySoftwareGroup","html_url":"https://github.com/RadioAstronomySoftwareGroup","followers_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/followers","following_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/following{/other_user}","gists_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/subscriptions","organizations_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/orgs","repos_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/repos","events_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/events{/privacy}","received_events_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/RadioAstronomySoftwareGroup/healvis","description":"Visibility simulation off of HEALPix shells.","fork":false,"url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis","forks_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/forks","keys_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/teams","hooks_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/hooks","issue_events_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/issues/events{/number}","events_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/events","assignees_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/assignees{/user}","branches_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/branches{/branch}","tags_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/tags","blobs_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/git/refs{/sha}","trees_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/statuses/{sha}","languages_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/languages","stargazers_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/stargazers","contributors_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/contributors","subscribers_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/subscribers","subscription_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/subscription","commits_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/commits{/sha}","git_commits_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/git/commits{/sha}","comments_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/comments{/number}","issue_comment_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/issues/comments{/number}","contents_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/contents/{+path}","compare_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/merges","archive_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/downloads","issues_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/issues{/number}","pulls_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/pulls{/number}","milestones_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/milestones{/number}","notifications_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/labels{/name}","releases_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/releases{/id}","deployments_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/deployments","created_at":"2019-01-20T21:43:26Z","updated_at":"2019-03-27T05:46:41Z","pushed_at":"2019-03-28T04:29:49Z","git_url":"git://github.com/RadioAstronomySoftwareGroup/healvis.git","ssh_url":"git@github.com:RadioAstronomySoftwareGroup/healvis.git","clone_url":"https://github.com/RadioAstronomySoftwareGroup/healvis.git","svn_url":"https://github.com/RadioAstronomySoftwareGroup/healvis","homepage":"","size":15746,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/pulls/17"},"html":{"href":"https://github.com/RadioAstronomySoftwareGroup/healvis/pull/17"},"issue":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/issues/17"},"comments":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/healvis/statuses/1ff90084b2e5c4df8fcf768ac937e3de45f69c26"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"aelanman"}}