{"action":"created","comment":{"url":"https://api.github.com/repos/msimet/Stile/pulls/comments/202184230","pull_request_review_id":136835464,"id":202184230,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjE4NDIzMA==","diff_hunk":"@@ -589,9 +589,16 @@ def plot(self, data, colors=['r', 'b'], log_yscale=False,\n         fields = data.dtype.names\n         # Pick which radius measurement to use\n         # TreeCorr changed the name of the output columns\n+        # This catches the case where we added the units to the label\n+        fields_no_units = [f.split(' [')[0] for f in fields]\n         for t_r in ['meanR', 'R_nom', '<R>', 'R_nominal', 'R']:\n             if t_r in fields:\n-                r = t_r\n+                # Protect underscores since they blow up the plotting routines","path":"stile/sys_tests.py","position":9,"original_position":9,"commit_id":"cbcc916ed6b79a69986d3f43ffed2b8a15df24b0","original_commit_id":"cbcc916ed6b79a69986d3f43ffed2b8a15df24b0","user":{"login":"EiffL","id":861591,"node_id":"MDQ6VXNlcjg2MTU5MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/861591?v=4","gravatar_id":"","url":"https://api.github.com/users/EiffL","html_url":"https://github.com/EiffL","followers_url":"https://api.github.com/users/EiffL/followers","following_url":"https://api.github.com/users/EiffL/following{/other_user}","gists_url":"https://api.github.com/users/EiffL/gists{/gist_id}","starred_url":"https://api.github.com/users/EiffL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EiffL/subscriptions","organizations_url":"https://api.github.com/users/EiffL/orgs","repos_url":"https://api.github.com/users/EiffL/repos","events_url":"https://api.github.com/users/EiffL/events{/privacy}","received_events_url":"https://api.github.com/users/EiffL/received_events","type":"User","site_admin":false},"body":"this works for me","created_at":"2018-07-12T21:25:20Z","updated_at":"2018-07-12T21:29:52Z","html_url":"https://github.com/msimet/Stile/pull/110#discussion_r202184230","pull_request_url":"https://api.github.com/repos/msimet/Stile/pulls/110","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/msimet/Stile/pulls/comments/202184230"},"html":{"href":"https://github.com/msimet/Stile/pull/110#discussion_r202184230"},"pull_request":{"href":"https://api.github.com/repos/msimet/Stile/pulls/110"}}},"pull_request":{"url":"https://api.github.com/repos/msimet/Stile/pulls/110","id":196572833,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2NTcyODMz","html_url":"https://github.com/msimet/Stile/pull/110","diff_url":"https://github.com/msimet/Stile/pull/110.diff","patch_url":"https://github.com/msimet/Stile/pull/110.patch","issue_url":"https://api.github.com/repos/msimet/Stile/issues/110","number":110,"state":"open","locked":false,"title":"#98 Underscore bug in plotting for CorrelationFunctionSysTests","user":{"login":"msimet","id":2327288,"node_id":"MDQ6VXNlcjIzMjcyODg=","avatar_url":"https://avatars3.githubusercontent.com/u/2327288?v=4","gravatar_id":"","url":"https://api.github.com/users/msimet","html_url":"https://github.com/msimet","followers_url":"https://api.github.com/users/msimet/followers","following_url":"https://api.github.com/users/msimet/following{/other_user}","gists_url":"https://api.github.com/users/msimet/gists{/gist_id}","starred_url":"https://api.github.com/users/msimet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msimet/subscriptions","organizations_url":"https://api.github.com/users/msimet/orgs","repos_url":"https://api.github.com/users/msimet/repos","events_url":"https://api.github.com/users/msimet/events{/privacy}","received_events_url":"https://api.github.com/users/msimet/received_events","type":"User","site_admin":false},"body":"Some of the radius labels used in the CorrelationFunctionSysTests had underscores that weren't meant to indicate subscripts.  This PR fixes a bug that happened when those labels were plotted, and also implements a test to catch them (and other plotting bugs).","created_at":"2018-06-21T20:54:45Z","updated_at":"2018-07-12T21:29:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a42163c8df8781c13243c1408b148970ff87217c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/msimet/Stile/pulls/110/commits","review_comments_url":"https://api.github.com/repos/msimet/Stile/pulls/110/comments","review_comment_url":"https://api.github.com/repos/msimet/Stile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/msimet/Stile/issues/110/comments","statuses_url":"https://api.github.com/repos/msimet/Stile/statuses/cbcc916ed6b79a69986d3f43ffed2b8a15df24b0","head":{"label":"msimet:#98","ref":"#98","sha":"cbcc916ed6b79a69986d3f43ffed2b8a15df24b0","user":{"login":"msimet","id":2327288,"node_id":"MDQ6VXNlcjIzMjcyODg=","avatar_url":"https://avatars3.githubusercontent.com/u/2327288?v=4","gravatar_id":"","url":"https://api.github.com/users/msimet","html_url":"https://github.com/msimet","followers_url":"https://api.github.com/users/msimet/followers","following_url":"https://api.github.com/users/msimet/following{/other_user}","gists_url":"https://api.github.com/users/msimet/gists{/gist_id}","starred_url":"https://api.github.com/users/msimet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msimet/subscriptions","organizations_url":"https://api.github.com/users/msimet/orgs","repos_url":"https://api.github.com/users/msimet/repos","events_url":"https://api.github.com/users/msimet/events{/privacy}","received_events_url":"https://api.github.com/users/msimet/received_events","type":"User","site_admin":false},"repo":{"id":18224250,"node_id":"MDEwOlJlcG9zaXRvcnkxODIyNDI1MA==","name":"Stile","full_name":"msimet/Stile","owner":{"login":"msimet","id":2327288,"node_id":"MDQ6VXNlcjIzMjcyODg=","avatar_url":"https://avatars3.githubusercontent.com/u/2327288?v=4","gravatar_id":"","url":"https://api.github.com/users/msimet","html_url":"https://github.com/msimet","followers_url":"https://api.github.com/users/msimet/followers","following_url":"https://api.github.com/users/msimet/following{/other_user}","gists_url":"https://api.github.com/users/msimet/gists{/gist_id}","starred_url":"https://api.github.com/users/msimet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msimet/subscriptions","organizations_url":"https://api.github.com/users/msimet/orgs","repos_url":"https://api.github.com/users/msimet/repos","events_url":"https://api.github.com/users/msimet/events{/privacy}","received_events_url":"https://api.github.com/users/msimet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/msimet/Stile","description":"Stile: the Systematics Tests In Lensing pipeline","fork":false,"url":"https://api.github.com/repos/msimet/Stile","forks_url":"https://api.github.com/repos/msimet/Stile/forks","keys_url":"https://api.github.com/repos/msimet/Stile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msimet/Stile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msimet/Stile/teams","hooks_url":"https://api.github.com/repos/msimet/Stile/hooks","issue_events_url":"https://api.github.com/repos/msimet/Stile/issues/events{/number}","events_url":"https://api.github.com/repos/msimet/Stile/events","assignees_url":"https://api.github.com/repos/msimet/Stile/assignees{/user}","branches_url":"https://api.github.com/repos/msimet/Stile/branches{/branch}","tags_url":"https://api.github.com/repos/msimet/Stile/tags","blobs_url":"https://api.github.com/repos/msimet/Stile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msimet/Stile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msimet/Stile/git/refs{/sha}","trees_url":"https://api.github.com/repos/msimet/Stile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msimet/Stile/statuses/{sha}","languages_url":"https://api.github.com/repos/msimet/Stile/languages","stargazers_url":"https://api.github.com/repos/msimet/Stile/stargazers","contributors_url":"https://api.github.com/repos/msimet/Stile/contributors","subscribers_url":"https://api.github.com/repos/msimet/Stile/subscribers","subscription_url":"https://api.github.com/repos/msimet/Stile/subscription","commits_url":"https://api.github.com/repos/msimet/Stile/commits{/sha}","git_commits_url":"https://api.github.com/repos/msimet/Stile/git/commits{/sha}","comments_url":"https://api.github.com/repos/msimet/Stile/comments{/number}","issue_comment_url":"https://api.github.com/repos/msimet/Stile/issues/comments{/number}","contents_url":"https://api.github.com/repos/msimet/Stile/contents/{+path}","compare_url":"https://api.github.com/repos/msimet/Stile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msimet/Stile/merges","archive_url":"https://api.github.com/repos/msimet/Stile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msimet/Stile/downloads","issues_url":"https://api.github.com/repos/msimet/Stile/issues{/number}","pulls_url":"https://api.github.com/repos/msimet/Stile/pulls{/number}","milestones_url":"https://api.github.com/repos/msimet/Stile/milestones{/number}","notifications_url":"https://api.github.com/repos/msimet/Stile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msimet/Stile/labels{/name}","releases_url":"https://api.github.com/repos/msimet/Stile/releases{/id}","deployments_url":"https://api.github.com/repos/msimet/Stile/deployments","created_at":"2014-03-28T19:38:13Z","updated_at":"2018-07-11T23:46:15Z","pushed_at":"2018-07-12T21:17:53Z","git_url":"git://github.com/msimet/Stile.git","ssh_url":"git@github.com:msimet/Stile.git","clone_url":"https://github.com/msimet/Stile.git","svn_url":"https://github.com/msimet/Stile","homepage":null,"size":76457,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":59,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":2,"open_issues":59,"watchers":5,"default_branch":"master"}},"base":{"label":"msimet:master","ref":"master","sha":"f2f2dfdb1aaecc843c3e5156c0c2f4ae6e60c40a","user":{"login":"msimet","id":2327288,"node_id":"MDQ6VXNlcjIzMjcyODg=","avatar_url":"https://avatars3.githubusercontent.com/u/2327288?v=4","gravatar_id":"","url":"https://api.github.com/users/msimet","html_url":"https://github.com/msimet","followers_url":"https://api.github.com/users/msimet/followers","following_url":"https://api.github.com/users/msimet/following{/other_user}","gists_url":"https://api.github.com/users/msimet/gists{/gist_id}","starred_url":"https://api.github.com/users/msimet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msimet/subscriptions","organizations_url":"https://api.github.com/users/msimet/orgs","repos_url":"https://api.github.com/users/msimet/repos","events_url":"https://api.github.com/users/msimet/events{/privacy}","received_events_url":"https://api.github.com/users/msimet/received_events","type":"User","site_admin":false},"repo":{"id":18224250,"node_id":"MDEwOlJlcG9zaXRvcnkxODIyNDI1MA==","name":"Stile","full_name":"msimet/Stile","owner":{"login":"msimet","id":2327288,"node_id":"MDQ6VXNlcjIzMjcyODg=","avatar_url":"https://avatars3.githubusercontent.com/u/2327288?v=4","gravatar_id":"","url":"https://api.github.com/users/msimet","html_url":"https://github.com/msimet","followers_url":"https://api.github.com/users/msimet/followers","following_url":"https://api.github.com/users/msimet/following{/other_user}","gists_url":"https://api.github.com/users/msimet/gists{/gist_id}","starred_url":"https://api.github.com/users/msimet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msimet/subscriptions","organizations_url":"https://api.github.com/users/msimet/orgs","repos_url":"https://api.github.com/users/msimet/repos","events_url":"https://api.github.com/users/msimet/events{/privacy}","received_events_url":"https://api.github.com/users/msimet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/msimet/Stile","description":"Stile: the Systematics Tests In Lensing pipeline","fork":false,"url":"https://api.github.com/repos/msimet/Stile","forks_url":"https://api.github.com/repos/msimet/Stile/forks","keys_url":"https://api.github.com/repos/msimet/Stile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msimet/Stile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msimet/Stile/teams","hooks_url":"https://api.github.com/repos/msimet/Stile/hooks","issue_events_url":"https://api.github.com/repos/msimet/Stile/issues/events{/number}","events_url":"https://api.github.com/repos/msimet/Stile/events","assignees_url":"https://api.github.com/repos/msimet/Stile/assignees{/user}","branches_url":"https://api.github.com/repos/msimet/Stile/branches{/branch}","tags_url":"https://api.github.com/repos/msimet/Stile/tags","blobs_url":"https://api.github.com/repos/msimet/Stile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msimet/Stile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msimet/Stile/git/refs{/sha}","trees_url":"https://api.github.com/repos/msimet/Stile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msimet/Stile/statuses/{sha}","languages_url":"https://api.github.com/repos/msimet/Stile/languages","stargazers_url":"https://api.github.com/repos/msimet/Stile/stargazers","contributors_url":"https://api.github.com/repos/msimet/Stile/contributors","subscribers_url":"https://api.github.com/repos/msimet/Stile/subscribers","subscription_url":"https://api.github.com/repos/msimet/Stile/subscription","commits_url":"https://api.github.com/repos/msimet/Stile/commits{/sha}","git_commits_url":"https://api.github.com/repos/msimet/Stile/git/commits{/sha}","comments_url":"https://api.github.com/repos/msimet/Stile/comments{/number}","issue_comment_url":"https://api.github.com/repos/msimet/Stile/issues/comments{/number}","contents_url":"https://api.github.com/repos/msimet/Stile/contents/{+path}","compare_url":"https://api.github.com/repos/msimet/Stile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msimet/Stile/merges","archive_url":"https://api.github.com/repos/msimet/Stile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msimet/Stile/downloads","issues_url":"https://api.github.com/repos/msimet/Stile/issues{/number}","pulls_url":"https://api.github.com/repos/msimet/Stile/pulls{/number}","milestones_url":"https://api.github.com/repos/msimet/Stile/milestones{/number}","notifications_url":"https://api.github.com/repos/msimet/Stile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msimet/Stile/labels{/name}","releases_url":"https://api.github.com/repos/msimet/Stile/releases{/id}","deployments_url":"https://api.github.com/repos/msimet/Stile/deployments","created_at":"2014-03-28T19:38:13Z","updated_at":"2018-07-11T23:46:15Z","pushed_at":"2018-07-12T21:17:53Z","git_url":"git://github.com/msimet/Stile.git","ssh_url":"git@github.com:msimet/Stile.git","clone_url":"https://github.com/msimet/Stile.git","svn_url":"https://github.com/msimet/Stile","homepage":null,"size":76457,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":59,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":2,"open_issues":59,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/msimet/Stile/pulls/110"},"html":{"href":"https://github.com/msimet/Stile/pull/110"},"issue":{"href":"https://api.github.com/repos/msimet/Stile/issues/110"},"comments":{"href":"https://api.github.com/repos/msimet/Stile/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/msimet/Stile/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/msimet/Stile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/msimet/Stile/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/msimet/Stile/statuses/cbcc916ed6b79a69986d3f43ffed2b8a15df24b0"}},"author_association":"OWNER"}}
{"actor":{"display_login":"EiffL"}}