{"action":"created","comment":{"url":"https://api.github.com/repos/nguy/artview/pulls/comments/34425832","id":34425832,"diff_hunk":"@@ -110,6 +110,13 @@ def onPick(self, event):\n         ydata = event.ydata # get event y location\n         if (xdata is None) or (ydata is None):\n             self.msg = \"Please choose point inside plot area\"\n+        elif self.Vradar.value is None:\n+            az = np.arctan2(xdata, ydata)*180./np.pi\n+            if az < 0:\n+                az = az + 360.\n+            rng = np.sqrt(xdata*xdata + ydata*ydata)\n+            self.msg = 'x = %4.2f, y = %4.2f, Azimuth = %4.2f deg., Range = %4.3f km'\\\n+                        %(xdata, ydata, az, rng)","path":"artview/components/tools.py","position":10,"original_position":10,"commit_id":"740f625e21f23a1cf06ddf56e18f3342540fb000","original_commit_id":"740f625e21f23a1cf06ddf56e18f3342540fb000","user":{"login":"nguy","id":1863738,"avatar_url":"https://avatars.githubusercontent.com/u/1863738?v=3","gravatar_id":"","url":"https://api.github.com/users/nguy","html_url":"https://github.com/nguy","followers_url":"https://api.github.com/users/nguy/followers","following_url":"https://api.github.com/users/nguy/following{/other_user}","gists_url":"https://api.github.com/users/nguy/gists{/gist_id}","starred_url":"https://api.github.com/users/nguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguy/subscriptions","organizations_url":"https://api.github.com/users/nguy/orgs","repos_url":"https://api.github.com/users/nguy/repos","events_url":"https://api.github.com/users/nguy/events{/privacy}","received_events_url":"https://api.github.com/users/nguy/received_events","type":"User","site_admin":false},"body":"That works.","created_at":"2015-07-12T21:26:50Z","updated_at":"2015-07-12T21:26:50Z","html_url":"https://github.com/nguy/artview/pull/49#discussion_r34425832","pull_request_url":"https://api.github.com/repos/nguy/artview/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/nguy/artview/pulls/comments/34425832"},"html":{"href":"https://github.com/nguy/artview/pull/49#discussion_r34425832"},"pull_request":{"href":"https://api.github.com/repos/nguy/artview/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/nguy/artview/pulls/49","id":39709985,"html_url":"https://github.com/nguy/artview/pull/49","diff_url":"https://github.com/nguy/artview/pull/49.diff","patch_url":"https://github.com/nguy/artview/pull/49.patch","issue_url":"https://api.github.com/repos/nguy/artview/issues/49","number":49,"state":"open","locked":false,"title":"Changes","user":{"login":"gamaanderson","id":7915525,"avatar_url":"https://avatars.githubusercontent.com/u/7915525?v=3","gravatar_id":"","url":"https://api.github.com/users/gamaanderson","html_url":"https://github.com/gamaanderson","followers_url":"https://api.github.com/users/gamaanderson/followers","following_url":"https://api.github.com/users/gamaanderson/following{/other_user}","gists_url":"https://api.github.com/users/gamaanderson/gists{/gist_id}","starred_url":"https://api.github.com/users/gamaanderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gamaanderson/subscriptions","organizations_url":"https://api.github.com/users/gamaanderson/orgs","repos_url":"https://api.github.com/users/gamaanderson/repos","events_url":"https://api.github.com/users/gamaanderson/events{/privacy}","received_events_url":"https://api.github.com/users/gamaanderson/received_events","type":"User","site_admin":false},"body":"changes include:\r\nMake None a valid value for Vradar, this is basic adding some tests.\r\nAdd print traceback if pyart read fails\r\nHandel fail in selecting file\r\ncorrect bug in Display._open_tiltbuttonwindow\r\nadd warning in roi.py for selecting display\r\nturn common.ShowLongText into modal or modalles\r\ncorrect CreateTable.display_data case no data","created_at":"2015-07-10T18:16:33Z","updated_at":"2015-07-12T21:26:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ca2d0d92662ff1e633fffdc2f55b3060e8e413a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nguy/artview/pulls/49/commits","review_comments_url":"https://api.github.com/repos/nguy/artview/pulls/49/comments","review_comment_url":"https://api.github.com/repos/nguy/artview/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nguy/artview/issues/49/comments","statuses_url":"https://api.github.com/repos/nguy/artview/statuses/740f625e21f23a1cf06ddf56e18f3342540fb000","head":{"label":"gamaanderson:changes","ref":"changes","sha":"740f625e21f23a1cf06ddf56e18f3342540fb000","user":{"login":"gamaanderson","id":7915525,"avatar_url":"https://avatars.githubusercontent.com/u/7915525?v=3","gravatar_id":"","url":"https://api.github.com/users/gamaanderson","html_url":"https://github.com/gamaanderson","followers_url":"https://api.github.com/users/gamaanderson/followers","following_url":"https://api.github.com/users/gamaanderson/following{/other_user}","gists_url":"https://api.github.com/users/gamaanderson/gists{/gist_id}","starred_url":"https://api.github.com/users/gamaanderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gamaanderson/subscriptions","organizations_url":"https://api.github.com/users/gamaanderson/orgs","repos_url":"https://api.github.com/users/gamaanderson/repos","events_url":"https://api.github.com/users/gamaanderson/events{/privacy}","received_events_url":"https://api.github.com/users/gamaanderson/received_events","type":"User","site_admin":false},"repo":{"id":34174315,"name":"artview","full_name":"gamaanderson/artview","owner":{"login":"gamaanderson","id":7915525,"avatar_url":"https://avatars.githubusercontent.com/u/7915525?v=3","gravatar_id":"","url":"https://api.github.com/users/gamaanderson","html_url":"https://github.com/gamaanderson","followers_url":"https://api.github.com/users/gamaanderson/followers","following_url":"https://api.github.com/users/gamaanderson/following{/other_user}","gists_url":"https://api.github.com/users/gamaanderson/gists{/gist_id}","starred_url":"https://api.github.com/users/gamaanderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gamaanderson/subscriptions","organizations_url":"https://api.github.com/users/gamaanderson/orgs","repos_url":"https://api.github.com/users/gamaanderson/repos","events_url":"https://api.github.com/users/gamaanderson/events{/privacy}","received_events_url":"https://api.github.com/users/gamaanderson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gamaanderson/artview","description":"ARM Radar Toolkit Viewer","fork":true,"url":"https://api.github.com/repos/gamaanderson/artview","forks_url":"https://api.github.com/repos/gamaanderson/artview/forks","keys_url":"https://api.github.com/repos/gamaanderson/artview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gamaanderson/artview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gamaanderson/artview/teams","hooks_url":"https://api.github.com/repos/gamaanderson/artview/hooks","issue_events_url":"https://api.github.com/repos/gamaanderson/artview/issues/events{/number}","events_url":"https://api.github.com/repos/gamaanderson/artview/events","assignees_url":"https://api.github.com/repos/gamaanderson/artview/assignees{/user}","branches_url":"https://api.github.com/repos/gamaanderson/artview/branches{/branch}","tags_url":"https://api.github.com/repos/gamaanderson/artview/tags","blobs_url":"https://api.github.com/repos/gamaanderson/artview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gamaanderson/artview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gamaanderson/artview/git/refs{/sha}","trees_url":"https://api.github.com/repos/gamaanderson/artview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gamaanderson/artview/statuses/{sha}","languages_url":"https://api.github.com/repos/gamaanderson/artview/languages","stargazers_url":"https://api.github.com/repos/gamaanderson/artview/stargazers","contributors_url":"https://api.github.com/repos/gamaanderson/artview/contributors","subscribers_url":"https://api.github.com/repos/gamaanderson/artview/subscribers","subscription_url":"https://api.github.com/repos/gamaanderson/artview/subscription","commits_url":"https://api.github.com/repos/gamaanderson/artview/commits{/sha}","git_commits_url":"https://api.github.com/repos/gamaanderson/artview/git/commits{/sha}","comments_url":"https://api.github.com/repos/gamaanderson/artview/comments{/number}","issue_comment_url":"https://api.github.com/repos/gamaanderson/artview/issues/comments{/number}","contents_url":"https://api.github.com/repos/gamaanderson/artview/contents/{+path}","compare_url":"https://api.github.com/repos/gamaanderson/artview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gamaanderson/artview/merges","archive_url":"https://api.github.com/repos/gamaanderson/artview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gamaanderson/artview/downloads","issues_url":"https://api.github.com/repos/gamaanderson/artview/issues{/number}","pulls_url":"https://api.github.com/repos/gamaanderson/artview/pulls{/number}","milestones_url":"https://api.github.com/repos/gamaanderson/artview/milestones{/number}","notifications_url":"https://api.github.com/repos/gamaanderson/artview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gamaanderson/artview/labels{/name}","releases_url":"https://api.github.com/repos/gamaanderson/artview/releases{/id}","created_at":"2015-04-18T16:58:10Z","updated_at":"2015-06-29T19:46:09Z","pushed_at":"2015-07-10T18:01:36Z","git_url":"git://github.com/gamaanderson/artview.git","ssh_url":"git@github.com:gamaanderson/artview.git","clone_url":"https://github.com/gamaanderson/artview.git","svn_url":"https://github.com/gamaanderson/artview","homepage":null,"size":6954,"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":"nguy:master","ref":"master","sha":"9710d2c39c182b1a2ca94cd84b309274a601cdac","user":{"login":"nguy","id":1863738,"avatar_url":"https://avatars.githubusercontent.com/u/1863738?v=3","gravatar_id":"","url":"https://api.github.com/users/nguy","html_url":"https://github.com/nguy","followers_url":"https://api.github.com/users/nguy/followers","following_url":"https://api.github.com/users/nguy/following{/other_user}","gists_url":"https://api.github.com/users/nguy/gists{/gist_id}","starred_url":"https://api.github.com/users/nguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguy/subscriptions","organizations_url":"https://api.github.com/users/nguy/orgs","repos_url":"https://api.github.com/users/nguy/repos","events_url":"https://api.github.com/users/nguy/events{/privacy}","received_events_url":"https://api.github.com/users/nguy/received_events","type":"User","site_admin":false},"repo":{"id":24516568,"name":"artview","full_name":"nguy/artview","owner":{"login":"nguy","id":1863738,"avatar_url":"https://avatars.githubusercontent.com/u/1863738?v=3","gravatar_id":"","url":"https://api.github.com/users/nguy","html_url":"https://github.com/nguy","followers_url":"https://api.github.com/users/nguy/followers","following_url":"https://api.github.com/users/nguy/following{/other_user}","gists_url":"https://api.github.com/users/nguy/gists{/gist_id}","starred_url":"https://api.github.com/users/nguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguy/subscriptions","organizations_url":"https://api.github.com/users/nguy/orgs","repos_url":"https://api.github.com/users/nguy/repos","events_url":"https://api.github.com/users/nguy/events{/privacy}","received_events_url":"https://api.github.com/users/nguy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguy/artview","description":"ARM Radar Toolkit Viewer","fork":false,"url":"https://api.github.com/repos/nguy/artview","forks_url":"https://api.github.com/repos/nguy/artview/forks","keys_url":"https://api.github.com/repos/nguy/artview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguy/artview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguy/artview/teams","hooks_url":"https://api.github.com/repos/nguy/artview/hooks","issue_events_url":"https://api.github.com/repos/nguy/artview/issues/events{/number}","events_url":"https://api.github.com/repos/nguy/artview/events","assignees_url":"https://api.github.com/repos/nguy/artview/assignees{/user}","branches_url":"https://api.github.com/repos/nguy/artview/branches{/branch}","tags_url":"https://api.github.com/repos/nguy/artview/tags","blobs_url":"https://api.github.com/repos/nguy/artview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguy/artview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguy/artview/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguy/artview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguy/artview/statuses/{sha}","languages_url":"https://api.github.com/repos/nguy/artview/languages","stargazers_url":"https://api.github.com/repos/nguy/artview/stargazers","contributors_url":"https://api.github.com/repos/nguy/artview/contributors","subscribers_url":"https://api.github.com/repos/nguy/artview/subscribers","subscription_url":"https://api.github.com/repos/nguy/artview/subscription","commits_url":"https://api.github.com/repos/nguy/artview/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguy/artview/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguy/artview/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguy/artview/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguy/artview/contents/{+path}","compare_url":"https://api.github.com/repos/nguy/artview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguy/artview/merges","archive_url":"https://api.github.com/repos/nguy/artview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguy/artview/downloads","issues_url":"https://api.github.com/repos/nguy/artview/issues{/number}","pulls_url":"https://api.github.com/repos/nguy/artview/pulls{/number}","milestones_url":"https://api.github.com/repos/nguy/artview/milestones{/number}","notifications_url":"https://api.github.com/repos/nguy/artview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguy/artview/labels{/name}","releases_url":"https://api.github.com/repos/nguy/artview/releases{/id}","created_at":"2014-09-26T21:53:26Z","updated_at":"2015-07-01T23:21:02Z","pushed_at":"2015-07-11T17:23:10Z","git_url":"git://github.com/nguy/artview.git","ssh_url":"git@github.com:nguy/artview.git","clone_url":"https://github.com/nguy/artview.git","svn_url":"https://github.com/nguy/artview","homepage":null,"size":7189,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":11,"forks":8,"open_issues":11,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nguy/artview/pulls/49"},"html":{"href":"https://github.com/nguy/artview/pull/49"},"issue":{"href":"https://api.github.com/repos/nguy/artview/issues/49"},"comments":{"href":"https://api.github.com/repos/nguy/artview/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/nguy/artview/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/nguy/artview/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nguy/artview/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/nguy/artview/statuses/740f625e21f23a1cf06ddf56e18f3342540fb000"}}}}