payload: {"action":"created","comment":{"url":"https://api.github.com/repos/sunpy/sunkit-image/pulls/comments/288269530","pull_request_review_id":242880291,"id":288269530,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4ODI2OTUzMA==","diff_hunk":"@@ -0,0 +1,177 @@\n+\"\"\"\n+This module contains functions that can be used to enhance the entire solar image.\n+\"\"\"\n+\n+import numpy as np\n+import scipy.ndimage as ndimage\n+\n+__all__ = [\n+    \"mgn1\",\n+    \"mgn2\"\n+]\n+\n+\n+def mgn1(\n+    data,\n+    sigma=[1.25, 2.5, 5, 10, 20, 40],\n+    k=0.7,\n+    gamma=3.2,\n+    h=0.7,\n+    weights=None,\n+    truncate=3\n+):\n+\n+    \"\"\"\n+    Multi-scale Gaussian normalization.\n+\n+    Parameters\n+    ----------\n+    data : `numpy.ndarray`\n+        Image to be transformed.\n+    sigma : `list`, optional\n+        Range of guassian widths to transform over.","path":"sunkit_image/enhance.py","position":32,"original_position":32,"commit_id":"7ca70e81f41e17cefcc814b2829b908b665c3d90","original_commit_id":"7ca70e81f41e17cefcc814b2829b908b665c3d90","user":{"login":"ebuchlin","id":3624676,"node_id":"MDQ6VXNlcjM2MjQ2NzY=","avatar_url":"https://avatars3.githubusercontent.com/u/3624676?v=4","gravatar_id":"","url":"https://api.github.com/users/ebuchlin","html_url":"https://github.com/ebuchlin","followers_url":"https://api.github.com/users/ebuchlin/followers","following_url":"https://api.github.com/users/ebuchlin/following{/other_user}","gists_url":"https://api.github.com/users/ebuchlin/gists{/gist_id}","starred_url":"https://api.github.com/users/ebuchlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebuchlin/subscriptions","organizations_url":"https://api.github.com/users/ebuchlin/orgs","repos_url":"https://api.github.com/users/ebuchlin/repos","events_url":"https://api.github.com/users/ebuchlin/events{/privacy}","received_events_url":"https://api.github.com/users/ebuchlin/received_events","type":"User","site_admin":false},"body":"Also: specify what is the default?","created_at":"2019-05-28T19:38:48Z","updated_at":"2019-05-28T19:38:48Z","html_url":"https://github.com/sunpy/sunkit-image/pull/30#discussion_r288269530","pull_request_url":"https://api.github.com/repos/sunpy/sunkit-image/pulls/30","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/sunpy/sunkit-image/pulls/comments/288269530"},"html":{"href":"https://github.com/sunpy/sunkit-image/pull/30#discussion_r288269530"},"pull_request":{"href":"https://api.github.com/repos/sunpy/sunkit-image/pulls/30"}},"in_reply_to_id":288268506},"pull_request":{"url":"https://api.github.com/repos/sunpy/sunkit-image/pulls/30","id":282881366,"node_id":"MDExOlB1bGxSZXF1ZXN0MjgyODgxMzY2","html_url":"https://github.com/sunpy/sunkit-image/pull/30","diff_url":"https://github.com/sunpy/sunkit-image/pull/30.diff","patch_url":"https://github.com/sunpy/sunkit-image/pull/30.patch","issue_url":"https://api.github.com/repos/sunpy/sunkit-image/issues/30","number":30,"state":"open","locked":false,"title":"Implemented Multi-scale Gaussian Normalization","user":{"login":"vatch123","id":39871718,"node_id":"MDQ6VXNlcjM5ODcxNzE4","avatar_url":"https://avatars0.githubusercontent.com/u/39871718?v=4","gravatar_id":"","url":"https://api.github.com/users/vatch123","html_url":"https://github.com/vatch123","followers_url":"https://api.github.com/users/vatch123/followers","following_url":"https://api.github.com/users/vatch123/following{/other_user}","gists_url":"https://api.github.com/users/vatch123/gists{/gist_id}","starred_url":"https://api.github.com/users/vatch123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatch123/subscriptions","organizations_url":"https://api.github.com/users/vatch123/orgs","repos_url":"https://api.github.com/users/vatch123/repos","events_url":"https://api.github.com/users/vatch123/events{/privacy}","received_events_url":"https://api.github.com/users/vatch123/received_events","type":"User","site_admin":false},"body":"<!-- This comments are hidden when you submit the pull request, so you do not need to remove them!\r\nPlease be sure to check out our contributing guidelines, https://github.com/sunpy/sunpy/blob/master/CONTRIBUTING.rst.\r\nPlease be sure to check out our code of conduct, https://github.com/sunpy/sunpy/blob/master/CODE_OF_CONDUCT.rst. -->\r\n\r\n<!-- Please just have a quick search on GitHub to see if a similar pull request has already been posted.\r\nWe have old closed pull requests that might provide useful code or ideas that directly tie in with your pull request. -->\r\n\r\n<!-- We have several automatic features that run when a pull request is open.\r\nThey can appear daunting but do not worry about them!\r\nWe have a brief explanation of them in the documentation, https://docs.sunpy.org/en/latest/dev_guide/pr_review_procedure.html#continuous-integration. -->\r\n\r\n### Description\r\n<!-- Provide a general description of what your pull request does. -->\r\n* Contains both @Cadair and @ebuchlin code. As both the implementations are accurate with minor differences and both provide visually acceptable outputs.\r\n* Cadair's code has been modified as mentioned in this [comment](https://github.com/sunpy/sunkit-image/issues/1#issuecomment-472108908).\r\n* Though Eric's code has minor differences from the paper as pointed out by him [here](https://github.com/sunpy/sunkit-image/issues/1#issuecomment-472184298).\r\n* Tests are on their way.\r\n* Have a look at this [gist](https://gist.github.com/vatch123/2a77bb68c414463d7c6efdedc59b121a) to see the differences in the output of both.\r\n\r\n<!-- If the pull request closes any open issues you can add this.\r\nIf you replace <Issue Number> with a number GitHub will automatically link it.\r\nIf it doesn't, please remove the following line. -->\r\n\r\nFixes #1 \r\n","created_at":"2019-05-28T15:22:01Z","updated_at":"2019-05-28T19:38:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f72387d94277b0fffe9113d63f3c2423652d94d4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":843654188,"node_id":"MDU6TGFiZWw4NDM2NTQxODg=","url":"https://api.github.com/repos/sunpy/sunkit-image/labels/Feature%20Request","name":"Feature Request","color":"009800","default":false},{"id":843655587,"node_id":"MDU6TGFiZWw4NDM2NTU1ODc=","url":"https://api.github.com/repos/sunpy/sunkit-image/labels/[WIP]","name":"[WIP]","color":"fad8c7","default":false}],"milestone":{"url":"https://api.github.com/repos/sunpy/sunkit-image/milestones/1","html_url":"https://github.com/sunpy/sunkit-image/milestone/1","labels_url":"https://api.github.com/repos/sunpy/sunkit-image/milestones/1/labels","id":4105131,"node_id":"MDk6TWlsZXN0b25lNDEwNTEzMQ==","number":1,"title":"v0.1.0","description":"","creator":{"login":"nabobalis","id":1392107,"node_id":"MDQ6VXNlcjEzOTIxMDc=","avatar_url":"https://avatars2.githubusercontent.com/u/1392107?v=4","gravatar_id":"","url":"https://api.github.com/users/nabobalis","html_url":"https://github.com/nabobalis","followers_url":"https://api.github.com/users/nabobalis/followers","following_url":"https://api.github.com/users/nabobalis/following{/other_user}","gists_url":"https://api.github.com/users/nabobalis/gists{/gist_id}","starred_url":"https://api.github.com/users/nabobalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nabobalis/subscriptions","organizations_url":"https://api.github.com/users/nabobalis/orgs","repos_url":"https://api.github.com/users/nabobalis/repos","events_url":"https://api.github.com/users/nabobalis/events{/privacy}","received_events_url":"https://api.github.com/users/nabobalis/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":4,"state":"open","created_at":"2019-03-03T18:56:42Z","updated_at":"2019-05-28T15:42:50Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/sunpy/sunkit-image/pulls/30/commits","review_comments_url":"https://api.github.com/repos/sunpy/sunkit-image/pulls/30/comments","review_comment_url":"https://api.github.com/repos/sunpy/sunkit-image/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sunpy/sunkit-image/issues/30/comments","statuses_url":"https://api.github.com/repos/sunpy/sunkit-image/statuses/7ca70e81f41e17cefcc814b2829b908b665c3d90","head":{"label":"vatch123:mgn","ref":"mgn","sha":"7ca70e81f41e17cefcc814b2829b908b665c3d90","user":{"login":"vatch123","id":39871718,"node_id":"MDQ6VXNlcjM5ODcxNzE4","avatar_url":"https://avatars0.githubusercontent.com/u/39871718?v=4","gravatar_id":"","url":"https://api.github.com/users/vatch123","html_url":"https://github.com/vatch123","followers_url":"https://api.github.com/users/vatch123/followers","following_url":"https://api.github.com/users/vatch123/following{/other_user}","gists_url":"https://api.github.com/users/vatch123/gists{/gist_id}","starred_url":"https://api.github.com/users/vatch123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatch123/subscriptions","organizations_url":"https://api.github.com/users/vatch123/orgs","repos_url":"https://api.github.com/users/vatch123/repos","events_url":"https://api.github.com/users/vatch123/events{/privacy}","received_events_url":"https://api.github.com/users/vatch123/received_events","type":"User","site_admin":false},"repo":{"id":173547049,"node_id":"MDEwOlJlcG9zaXRvcnkxNzM1NDcwNDk=","name":"sunkit-image","full_name":"vatch123/sunkit-image","private":false,"owner":{"login":"vatch123","id":39871718,"node_id":"MDQ6VXNlcjM5ODcxNzE4","avatar_url":"https://avatars0.githubusercontent.com/u/39871718?v=4","gravatar_id":"","url":"https://api.github.com/users/vatch123","html_url":"https://github.com/vatch123","followers_url":"https://api.github.com/users/vatch123/followers","following_url":"https://api.github.com/users/vatch123/following{/other_user}","gists_url":"https://api.github.com/users/vatch123/gists{/gist_id}","starred_url":"https://api.github.com/users/vatch123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatch123/subscriptions","organizations_url":"https://api.github.com/users/vatch123/orgs","repos_url":"https://api.github.com/users/vatch123/repos","events_url":"https://api.github.com/users/vatch123/events{/privacy}","received_events_url":"https://api.github.com/users/vatch123/received_events","type":"User","site_admin":false},"html_url":"https://github.com/vatch123/sunkit-image","description":"A image processing toolbox for Solar Physics","fork":true,"url":"https://api.github.com/repos/vatch123/sunkit-image","forks_url":"https://api.github.com/repos/vatch123/sunkit-image/forks","keys_url":"https://api.github.com/repos/vatch123/sunkit-image/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vatch123/sunkit-image/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vatch123/sunkit-image/teams","hooks_url":"https://api.github.com/repos/vatch123/sunkit-image/hooks","issue_events_url":"https://api.github.com/repos/vatch123/sunkit-image/issues/events{/number}","events_url":"https://api.github.com/repos/vatch123/sunkit-image/events","assignees_url":"https://api.github.com/repos/vatch123/sunkit-image/assignees{/user}","branches_url":"https://api.github.com/repos/vatch123/sunkit-image/branches{/branch}","tags_url":"https://api.github.com/repos/vatch123/sunkit-image/tags","blobs_url":"https://api.github.com/repos/vatch123/sunkit-image/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vatch123/sunkit-image/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vatch123/sunkit-image/git/refs{/sha}","trees_url":"https://api.github.com/repos/vatch123/sunkit-image/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vatch123/sunkit-image/statuses/{sha}","languages_url":"https://api.github.com/repos/vatch123/sunkit-image/languages","stargazers_url":"https://api.github.com/repos/vatch123/sunkit-image/stargazers","contributors_url":"https://api.github.com/repos/vatch123/sunkit-image/contributors","subscribers_url":"https://api.github.com/repos/vatch123/sunkit-image/subscribers","subscription_url":"https://api.github.com/repos/vatch123/sunkit-image/subscription","commits_url":"https://api.github.com/repos/vatch123/sunkit-image/commits{/sha}","git_commits_url":"https://api.github.com/repos/vatch123/sunkit-image/git/commits{/sha}","comments_url":"https://api.github.com/repos/vatch123/sunkit-image/comments{/number}","issue_comment_url":"https://api.github.com/repos/vatch123/sunkit-image/issues/comments{/number}","contents_url":"https://api.github.com/repos/vatch123/sunkit-image/contents/{+path}","compare_url":"https://api.github.com/repos/vatch123/sunkit-image/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vatch123/sunkit-image/merges","archive_url":"https://api.github.com/repos/vatch123/sunkit-image/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vatch123/sunkit-image/downloads","issues_url":"https://api.github.com/repos/vatch123/sunkit-image/issues{/number}","pulls_url":"https://api.github.com/repos/vatch123/sunkit-image/pulls{/number}","milestones_url":"https://api.github.com/repos/vatch123/sunkit-image/milestones{/number}","notifications_url":"https://api.github.com/repos/vatch123/sunkit-image/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vatch123/sunkit-image/labels{/name}","releases_url":"https://api.github.com/repos/vatch123/sunkit-image/releases{/id}","deployments_url":"https://api.github.com/repos/vatch123/sunkit-image/deployments","created_at":"2019-03-03T08:02:22Z","updated_at":"2019-05-28T14:06:14Z","pushed_at":"2019-05-28T15:39:30Z","git_url":"git://github.com/vatch123/sunkit-image.git","ssh_url":"git@github.com:vatch123/sunkit-image.git","clone_url":"https://github.com/vatch123/sunkit-image.git","svn_url":"https://github.com/vatch123/sunkit-image","homepage":null,"size":205,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sunpy:master","ref":"master","sha":"eae31148450c2b570fbce55e0b4ff9467273b181","user":{"login":"sunpy","id":963197,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk2MzE5Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/963197?v=4","gravatar_id":"","url":"https://api.github.com/users/sunpy","html_url":"https://github.com/sunpy","followers_url":"https://api.github.com/users/sunpy/followers","following_url":"https://api.github.com/users/sunpy/following{/other_user}","gists_url":"https://api.github.com/users/sunpy/gists{/gist_id}","starred_url":"https://api.github.com/users/sunpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunpy/subscriptions","organizations_url":"https://api.github.com/users/sunpy/orgs","repos_url":"https://api.github.com/users/sunpy/repos","events_url":"https://api.github.com/users/sunpy/events{/privacy}","received_events_url":"https://api.github.com/users/sunpy/received_events","type":"Organization","site_admin":false},"repo":{"id":109168041,"node_id":"MDEwOlJlcG9zaXRvcnkxMDkxNjgwNDE=","name":"sunkit-image","full_name":"sunpy/sunkit-image","private":false,"owner":{"login":"sunpy","id":963197,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk2MzE5Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/963197?v=4","gravatar_id":"","url":"https://api.github.com/users/sunpy","html_url":"https://github.com/sunpy","followers_url":"https://api.github.com/users/sunpy/followers","following_url":"https://api.github.com/users/sunpy/following{/other_user}","gists_url":"https://api.github.com/users/sunpy/gists{/gist_id}","starred_url":"https://api.github.com/users/sunpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunpy/subscriptions","organizations_url":"https://api.github.com/users/sunpy/orgs","repos_url":"https://api.github.com/users/sunpy/repos","events_url":"https://api.github.com/users/sunpy/events{/privacy}","received_events_url":"https://api.github.com/users/sunpy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/sunpy/sunkit-image","description":"A image processing toolbox for Solar Physics","fork":false,"url":"https://api.github.com/repos/sunpy/sunkit-image","forks_url":"https://api.github.com/repos/sunpy/sunkit-image/forks","keys_url":"https://api.github.com/repos/sunpy/sunkit-image/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sunpy/sunkit-image/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sunpy/sunkit-image/teams","hooks_url":"https://api.github.com/repos/sunpy/sunkit-image/hooks","issue_events_url":"https://api.github.com/repos/sunpy/sunkit-image/issues/events{/number}","events_url":"https://api.github.com/repos/sunpy/sunkit-image/events","assignees_url":"https://api.github.com/repos/sunpy/sunkit-image/assignees{/user}","branches_url":"https://api.github.com/repos/sunpy/sunkit-image/branches{/branch}","tags_url":"https://api.github.com/repos/sunpy/sunkit-image/tags","blobs_url":"https://api.github.com/repos/sunpy/sunkit-image/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sunpy/sunkit-image/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sunpy/sunkit-image/git/refs{/sha}","trees_url":"https://api.github.com/repos/sunpy/sunkit-image/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sunpy/sunkit-image/statuses/{sha}","languages_url":"https://api.github.com/repos/sunpy/sunkit-image/languages","stargazers_url":"https://api.github.com/repos/sunpy/sunkit-image/stargazers","contributors_url":"https://api.github.com/repos/sunpy/sunkit-image/contributors","subscribers_url":"https://api.github.com/repos/sunpy/sunkit-image/subscribers","subscription_url":"https://api.github.com/repos/sunpy/sunkit-image/subscription","commits_url":"https://api.github.com/repos/sunpy/sunkit-image/commits{/sha}","git_commits_url":"https://api.github.com/repos/sunpy/sunkit-image/git/commits{/sha}","comments_url":"https://api.github.com/repos/sunpy/sunkit-image/comments{/number}","issue_comment_url":"https://api.github.com/repos/sunpy/sunkit-image/issues/comments{/number}","contents_url":"https://api.github.com/repos/sunpy/sunkit-image/contents/{+path}","compare_url":"https://api.github.com/repos/sunpy/sunkit-image/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sunpy/sunkit-image/merges","archive_url":"https://api.github.com/repos/sunpy/sunkit-image/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sunpy/sunkit-image/downloads","issues_url":"https://api.github.com/repos/sunpy/sunkit-image/issues{/number}","pulls_url":"https://api.github.com/repos/sunpy/sunkit-image/pulls{/number}","milestones_url":"https://api.github.com/repos/sunpy/sunkit-image/milestones{/number}","notifications_url":"https://api.github.com/repos/sunpy/sunkit-image/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sunpy/sunkit-image/labels{/name}","releases_url":"https://api.github.com/repos/sunpy/sunkit-image/releases{/id}","deployments_url":"https://api.github.com/repos/sunpy/sunkit-image/deployments","created_at":"2017-11-01T18:30:22Z","updated_at":"2019-05-28T12:11:12Z","pushed_at":"2019-05-28T15:39:32Z","git_url":"git://github.com/sunpy/sunkit-image.git","ssh_url":"git@github.com:sunpy/sunkit-image.git","clone_url":"https://github.com/sunpy/sunkit-image.git","svn_url":"https://github.com/sunpy/sunkit-image","homepage":null,"size":168,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":16,"license":null,"forks":17,"open_issues":16,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sunpy/sunkit-image/pulls/30"},"html":{"href":"https://github.com/sunpy/sunkit-image/pull/30"},"issue":{"href":"https://api.github.com/repos/sunpy/sunkit-image/issues/30"},"comments":{"href":"https://api.github.com/repos/sunpy/sunkit-image/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/sunpy/sunkit-image/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/sunpy/sunkit-image/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sunpy/sunkit-image/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/sunpy/sunkit-image/statuses/7ca70e81f41e17cefcc814b2829b908b665c3d90"}},"author_association":"NONE"}}
other: {"actor":{"display_login":"ebuchlin"}}