{"action":"created","comment":{"url":"https://api.github.com/repos/sunpy/solarbextrapolation/pulls/comments/35625731","id":35625731,"diff_hunk":"@@ -0,0 +1,155 @@\n+# -*- coding: utf-8 -*-\n+\"\"\"\n+Created on Mon Jul 27 15:32:51 2015\n+\n+@author: alex_\n+\"\"\"\n+\n+from astropy import units as u\n+import numpy as np\n+import sunpy.map as mp\n+from copy import deepcopy\n+\n+def decompose_ang_len(qua_input, **kwargs):\n+    \"\"\"\n+    Function to help decompose quantities that have an equivilence between angles\n+    and length, such as photospheric observational angles and object sizes.\n+    The function uses an equivilence to cobnvert into eithe length or angle\n+    physical_type units.\n+\n+    Parameters\n+    ----------\n+    \n+    working_units : astropy.unit, optional\n+        Unit that will be used for internal working and the returned quantity.\n+    Ensure that it is of the correct physical type, angle or length.\n+    \n+    equivalencies : astropy equivilence,\n+        Equivilence used to relate the length and angle units.\n+    \n+    \"\"\"","path":"solarextrapolation/utilities.py","position":30,"original_position":30,"commit_id":"93657722a2d6cdb85361b08c70c0fe3e102cc7f7","original_commit_id":"93657722a2d6cdb85361b08c70c0fe3e102cc7f7","user":{"login":"Cadair","id":1391051,"avatar_url":"https://avatars.githubusercontent.com/u/1391051?v=3","gravatar_id":"","url":"https://api.github.com/users/Cadair","html_url":"https://github.com/Cadair","followers_url":"https://api.github.com/users/Cadair/followers","following_url":"https://api.github.com/users/Cadair/following{/other_user}","gists_url":"https://api.github.com/users/Cadair/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadair/subscriptions","organizations_url":"https://api.github.com/users/Cadair/orgs","repos_url":"https://api.github.com/users/Cadair/repos","events_url":"https://api.github.com/users/Cadair/events{/privacy}","received_events_url":"https://api.github.com/users/Cadair/received_events","type":"User","site_admin":false},"body":"Also, holy crap this function!!\r\n\r\nYou should write a whole suite of tests for this as a priority.","created_at":"2015-07-28T08:41:46Z","updated_at":"2015-07-28T08:41:46Z","html_url":"https://github.com/sunpy/solarbextrapolation/pull/2#discussion_r35625731","pull_request_url":"https://api.github.com/repos/sunpy/solarbextrapolation/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/sunpy/solarbextrapolation/pulls/comments/35625731"},"html":{"href":"https://github.com/sunpy/solarbextrapolation/pull/2#discussion_r35625731"},"pull_request":{"href":"https://api.github.com/repos/sunpy/solarbextrapolation/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/sunpy/solarbextrapolation/pulls/2","id":40968720,"html_url":"https://github.com/sunpy/solarbextrapolation/pull/2","diff_url":"https://github.com/sunpy/solarbextrapolation/pull/2.diff","patch_url":"https://github.com/sunpy/solarbextrapolation/pull/2.patch","issue_url":"https://api.github.com/repos/sunpy/solarbextrapolation/issues/2","number":2,"state":"open","locked":false,"title":"Visualisations and Utilities Introduced","user":{"login":"Alex-Ian-Hamilton","id":4443311,"avatar_url":"https://avatars.githubusercontent.com/u/4443311?v=3","gravatar_id":"","url":"https://api.github.com/users/Alex-Ian-Hamilton","html_url":"https://github.com/Alex-Ian-Hamilton","followers_url":"https://api.github.com/users/Alex-Ian-Hamilton/followers","following_url":"https://api.github.com/users/Alex-Ian-Hamilton/following{/other_user}","gists_url":"https://api.github.com/users/Alex-Ian-Hamilton/gists{/gist_id}","starred_url":"https://api.github.com/users/Alex-Ian-Hamilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alex-Ian-Hamilton/subscriptions","organizations_url":"https://api.github.com/users/Alex-Ian-Hamilton/orgs","repos_url":"https://api.github.com/users/Alex-Ian-Hamilton/repos","events_url":"https://api.github.com/users/Alex-Ian-Hamilton/events{/privacy}","received_events_url":"https://api.github.com/users/Alex-Ian-Hamilton/received_events","type":"User","site_admin":false},"body":"The primary goal of this PR is to introduce the utilities (general tools for use in the package) and the visualisations functions for viewing the extrapolation results in MayaVi.","created_at":"2015-07-28T01:59:15Z","updated_at":"2015-07-28T08:41:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sunpy/solarbextrapolation/pulls/2/commits","review_comments_url":"https://api.github.com/repos/sunpy/solarbextrapolation/pulls/2/comments","review_comment_url":"https://api.github.com/repos/sunpy/solarbextrapolation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sunpy/solarbextrapolation/issues/2/comments","statuses_url":"https://api.github.com/repos/sunpy/solarbextrapolation/statuses/93657722a2d6cdb85361b08c70c0fe3e102cc7f7","head":{"label":"Alex-Ian-Hamilton:master","ref":"master","sha":"93657722a2d6cdb85361b08c70c0fe3e102cc7f7","user":{"login":"Alex-Ian-Hamilton","id":4443311,"avatar_url":"https://avatars.githubusercontent.com/u/4443311?v=3","gravatar_id":"","url":"https://api.github.com/users/Alex-Ian-Hamilton","html_url":"https://github.com/Alex-Ian-Hamilton","followers_url":"https://api.github.com/users/Alex-Ian-Hamilton/followers","following_url":"https://api.github.com/users/Alex-Ian-Hamilton/following{/other_user}","gists_url":"https://api.github.com/users/Alex-Ian-Hamilton/gists{/gist_id}","starred_url":"https://api.github.com/users/Alex-Ian-Hamilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alex-Ian-Hamilton/subscriptions","organizations_url":"https://api.github.com/users/Alex-Ian-Hamilton/orgs","repos_url":"https://api.github.com/users/Alex-Ian-Hamilton/repos","events_url":"https://api.github.com/users/Alex-Ian-Hamilton/events{/privacy}","received_events_url":"https://api.github.com/users/Alex-Ian-Hamilton/received_events","type":"User","site_admin":false},"repo":{"id":36882708,"name":"solarbextrapolation","full_name":"Alex-Ian-Hamilton/solarbextrapolation","owner":{"login":"Alex-Ian-Hamilton","id":4443311,"avatar_url":"https://avatars.githubusercontent.com/u/4443311?v=3","gravatar_id":"","url":"https://api.github.com/users/Alex-Ian-Hamilton","html_url":"https://github.com/Alex-Ian-Hamilton","followers_url":"https://api.github.com/users/Alex-Ian-Hamilton/followers","following_url":"https://api.github.com/users/Alex-Ian-Hamilton/following{/other_user}","gists_url":"https://api.github.com/users/Alex-Ian-Hamilton/gists{/gist_id}","starred_url":"https://api.github.com/users/Alex-Ian-Hamilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alex-Ian-Hamilton/subscriptions","organizations_url":"https://api.github.com/users/Alex-Ian-Hamilton/orgs","repos_url":"https://api.github.com/users/Alex-Ian-Hamilton/repos","events_url":"https://api.github.com/users/Alex-Ian-Hamilton/events{/privacy}","received_events_url":"https://api.github.com/users/Alex-Ian-Hamilton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Alex-Ian-Hamilton/solarbextrapolation","description":"","fork":true,"url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation","forks_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/forks","keys_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/teams","hooks_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/hooks","issue_events_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/issues/events{/number}","events_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/events","assignees_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/assignees{/user}","branches_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/branches{/branch}","tags_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/tags","blobs_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/statuses/{sha}","languages_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/languages","stargazers_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/stargazers","contributors_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/contributors","subscribers_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/subscribers","subscription_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/subscription","commits_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/contents/{+path}","compare_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/merges","archive_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/downloads","issues_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/issues{/number}","pulls_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/pulls{/number}","milestones_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/milestones{/number}","notifications_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/labels{/name}","releases_url":"https://api.github.com/repos/Alex-Ian-Hamilton/solarbextrapolation/releases{/id}","created_at":"2015-06-04T16:35:43Z","updated_at":"2015-06-04T17:24:11Z","pushed_at":"2015-07-28T01:54:11Z","git_url":"git://github.com/Alex-Ian-Hamilton/solarbextrapolation.git","ssh_url":"git@github.com:Alex-Ian-Hamilton/solarbextrapolation.git","clone_url":"https://github.com/Alex-Ian-Hamilton/solarbextrapolation.git","svn_url":"https://github.com/Alex-Ian-Hamilton/solarbextrapolation","homepage":null,"size":437,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sunpy:master","ref":"master","sha":"88f0d5d10ac847ac1dfe54e7080e67dee7cecd9a","user":{"login":"sunpy","id":963197,"avatar_url":"https://avatars.githubusercontent.com/u/963197?v=3","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":36881181,"name":"solarbextrapolation","full_name":"sunpy/solarbextrapolation","owner":{"login":"sunpy","id":963197,"avatar_url":"https://avatars.githubusercontent.com/u/963197?v=3","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},"private":false,"html_url":"https://github.com/sunpy/solarbextrapolation","description":"Extrapolation framework for Solar Magnetic Fields","fork":false,"url":"https://api.github.com/repos/sunpy/solarbextrapolation","forks_url":"https://api.github.com/repos/sunpy/solarbextrapolation/forks","keys_url":"https://api.github.com/repos/sunpy/solarbextrapolation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sunpy/solarbextrapolation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sunpy/solarbextrapolation/teams","hooks_url":"https://api.github.com/repos/sunpy/solarbextrapolation/hooks","issue_events_url":"https://api.github.com/repos/sunpy/solarbextrapolation/issues/events{/number}","events_url":"https://api.github.com/repos/sunpy/solarbextrapolation/events","assignees_url":"https://api.github.com/repos/sunpy/solarbextrapolation/assignees{/user}","branches_url":"https://api.github.com/repos/sunpy/solarbextrapolation/branches{/branch}","tags_url":"https://api.github.com/repos/sunpy/solarbextrapolation/tags","blobs_url":"https://api.github.com/repos/sunpy/solarbextrapolation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sunpy/solarbextrapolation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sunpy/solarbextrapolation/git/refs{/sha}","trees_url":"https://api.github.com/repos/sunpy/solarbextrapolation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sunpy/solarbextrapolation/statuses/{sha}","languages_url":"https://api.github.com/repos/sunpy/solarbextrapolation/languages","stargazers_url":"https://api.github.com/repos/sunpy/solarbextrapolation/stargazers","contributors_url":"https://api.github.com/repos/sunpy/solarbextrapolation/contributors","subscribers_url":"https://api.github.com/repos/sunpy/solarbextrapolation/subscribers","subscription_url":"https://api.github.com/repos/sunpy/solarbextrapolation/subscription","commits_url":"https://api.github.com/repos/sunpy/solarbextrapolation/commits{/sha}","git_commits_url":"https://api.github.com/repos/sunpy/solarbextrapolation/git/commits{/sha}","comments_url":"https://api.github.com/repos/sunpy/solarbextrapolation/comments{/number}","issue_comment_url":"https://api.github.com/repos/sunpy/solarbextrapolation/issues/comments{/number}","contents_url":"https://api.github.com/repos/sunpy/solarbextrapolation/contents/{+path}","compare_url":"https://api.github.com/repos/sunpy/solarbextrapolation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sunpy/solarbextrapolation/merges","archive_url":"https://api.github.com/repos/sunpy/solarbextrapolation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sunpy/solarbextrapolation/downloads","issues_url":"https://api.github.com/repos/sunpy/solarbextrapolation/issues{/number}","pulls_url":"https://api.github.com/repos/sunpy/solarbextrapolation/pulls{/number}","milestones_url":"https://api.github.com/repos/sunpy/solarbextrapolation/milestones{/number}","notifications_url":"https://api.github.com/repos/sunpy/solarbextrapolation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sunpy/solarbextrapolation/labels{/name}","releases_url":"https://api.github.com/repos/sunpy/solarbextrapolation/releases{/id}","created_at":"2015-06-04T16:07:49Z","updated_at":"2015-07-02T13:28:28Z","pushed_at":"2015-07-28T01:59:16Z","git_url":"git://github.com/sunpy/solarbextrapolation.git","ssh_url":"git@github.com:sunpy/solarbextrapolation.git","clone_url":"https://github.com/sunpy/solarbextrapolation.git","svn_url":"https://github.com/sunpy/solarbextrapolation","homepage":"http://docs.sunpy.org/projects/solarbextrapolation/","size":458,"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/sunpy/solarbextrapolation/pulls/2"},"html":{"href":"https://github.com/sunpy/solarbextrapolation/pull/2"},"issue":{"href":"https://api.github.com/repos/sunpy/solarbextrapolation/issues/2"},"comments":{"href":"https://api.github.com/repos/sunpy/solarbextrapolation/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/sunpy/solarbextrapolation/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/sunpy/solarbextrapolation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sunpy/solarbextrapolation/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/sunpy/solarbextrapolation/statuses/93657722a2d6cdb85361b08c70c0fe3e102cc7f7"}}}}