{"action":"created","comment":{"url":"https://api.github.com/repos/UV-CDAT/cdatweb/pulls/comments/52684431","id":52684431,"diff_hunk":"@@ -24,7 +24,17 @@ def list_variables(self, file_name):\n         out = {}\n         for vname in reader.variables:\n             var = reader.variables[vname]\n+\n+            # Get a displayable name for the variable\n+            if hasattr(var, 'long_name'):\n+                name = var.long_name\n+            elif hasattr(var, 'title'):\n+                name = var.title\n+            elif hasattr(var, 'id'):","path":"vis_server/protocols/FileLoader.py","position":10,"original_position":10,"commit_id":"cea0f38ce81da47918a60f06d1a7a270709e9f3c","original_commit_id":"5e4c38c8aad36a78574b32e46577edcbd7c18746","user":{"login":"chaosphere2112","id":718512,"avatar_url":"https://avatars.githubusercontent.com/u/718512?v=3","gravatar_id":"","url":"https://api.github.com/users/chaosphere2112","html_url":"https://github.com/chaosphere2112","followers_url":"https://api.github.com/users/chaosphere2112/followers","following_url":"https://api.github.com/users/chaosphere2112/following{/other_user}","gists_url":"https://api.github.com/users/chaosphere2112/gists{/gist_id}","starred_url":"https://api.github.com/users/chaosphere2112/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaosphere2112/subscriptions","organizations_url":"https://api.github.com/users/chaosphere2112/orgs","repos_url":"https://api.github.com/users/chaosphere2112/repos","events_url":"https://api.github.com/users/chaosphere2112/events{/privacy}","received_events_url":"https://api.github.com/users/chaosphere2112/received_events","type":"User","site_admin":false},"body":"Which is exactly what `var.id` is :wink: \r\n\r\nThough totally with you on the attributes being magically missing leading to attribute errors all over the place.","created_at":"2016-02-11T23:22:03Z","updated_at":"2016-02-11T23:22:03Z","html_url":"https://github.com/UV-CDAT/cdatweb/pull/98#discussion_r52684431","pull_request_url":"https://api.github.com/repos/UV-CDAT/cdatweb/pulls/98","_links":{"self":{"href":"https://api.github.com/repos/UV-CDAT/cdatweb/pulls/comments/52684431"},"html":{"href":"https://github.com/UV-CDAT/cdatweb/pull/98#discussion_r52684431"},"pull_request":{"href":"https://api.github.com/repos/UV-CDAT/cdatweb/pulls/98"}}},"pull_request":{"url":"https://api.github.com/repos/UV-CDAT/cdatweb/pulls/98","id":59108114,"html_url":"https://github.com/UV-CDAT/cdatweb/pull/98","diff_url":"https://github.com/UV-CDAT/cdatweb/pull/98.diff","patch_url":"https://github.com/UV-CDAT/cdatweb/pull/98.patch","issue_url":"https://api.github.com/repos/UV-CDAT/cdatweb/issues/98","number":98,"state":"open","locked":false,"title":"Display more informative variable names","user":{"login":"jbeezley","id":31890,"avatar_url":"https://avatars.githubusercontent.com/u/31890?v=3","gravatar_id":"","url":"https://api.github.com/users/jbeezley","html_url":"https://github.com/jbeezley","followers_url":"https://api.github.com/users/jbeezley/followers","following_url":"https://api.github.com/users/jbeezley/following{/other_user}","gists_url":"https://api.github.com/users/jbeezley/gists{/gist_id}","starred_url":"https://api.github.com/users/jbeezley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbeezley/subscriptions","organizations_url":"https://api.github.com/users/jbeezley/orgs","repos_url":"https://api.github.com/users/jbeezley/repos","events_url":"https://api.github.com/users/jbeezley/events{/privacy}","received_events_url":"https://api.github.com/users/jbeezley/received_events","type":"User","site_admin":false},"body":"This fixes half of #90.  For the templates, I'm waiting on @chaosphere2112's GUI code.\r\n\r\nThis also removes some dead code that was intended to abstract cdms, but it was overly complicated and probably not necessary.","created_at":"2016-02-11T22:58:30Z","updated_at":"2016-02-11T23:22:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66c917f480220aab4ad91b3c0d1993a4ef2c73b4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/UV-CDAT/cdatweb/pulls/98/commits","review_comments_url":"https://api.github.com/repos/UV-CDAT/cdatweb/pulls/98/comments","review_comment_url":"https://api.github.com/repos/UV-CDAT/cdatweb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UV-CDAT/cdatweb/issues/98/comments","statuses_url":"https://api.github.com/repos/UV-CDAT/cdatweb/statuses/cea0f38ce81da47918a60f06d1a7a270709e9f3c","head":{"label":"UV-CDAT:nice-variable-names","ref":"nice-variable-names","sha":"cea0f38ce81da47918a60f06d1a7a270709e9f3c","user":{"login":"UV-CDAT","id":2781444,"avatar_url":"https://avatars.githubusercontent.com/u/2781444?v=3","gravatar_id":"","url":"https://api.github.com/users/UV-CDAT","html_url":"https://github.com/UV-CDAT","followers_url":"https://api.github.com/users/UV-CDAT/followers","following_url":"https://api.github.com/users/UV-CDAT/following{/other_user}","gists_url":"https://api.github.com/users/UV-CDAT/gists{/gist_id}","starred_url":"https://api.github.com/users/UV-CDAT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UV-CDAT/subscriptions","organizations_url":"https://api.github.com/users/UV-CDAT/orgs","repos_url":"https://api.github.com/users/UV-CDAT/repos","events_url":"https://api.github.com/users/UV-CDAT/events{/privacy}","received_events_url":"https://api.github.com/users/UV-CDAT/received_events","type":"Organization","site_admin":false},"repo":{"id":14017672,"name":"cdatweb","full_name":"UV-CDAT/cdatweb","owner":{"login":"UV-CDAT","id":2781444,"avatar_url":"https://avatars.githubusercontent.com/u/2781444?v=3","gravatar_id":"","url":"https://api.github.com/users/UV-CDAT","html_url":"https://github.com/UV-CDAT","followers_url":"https://api.github.com/users/UV-CDAT/followers","following_url":"https://api.github.com/users/UV-CDAT/following{/other_user}","gists_url":"https://api.github.com/users/UV-CDAT/gists{/gist_id}","starred_url":"https://api.github.com/users/UV-CDAT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UV-CDAT/subscriptions","organizations_url":"https://api.github.com/users/UV-CDAT/orgs","repos_url":"https://api.github.com/users/UV-CDAT/repos","events_url":"https://api.github.com/users/UV-CDAT/events{/privacy}","received_events_url":"https://api.github.com/users/UV-CDAT/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UV-CDAT/cdatweb","description":"Web visualization framework of UV-CDAT","fork":false,"url":"https://api.github.com/repos/UV-CDAT/cdatweb","forks_url":"https://api.github.com/repos/UV-CDAT/cdatweb/forks","keys_url":"https://api.github.com/repos/UV-CDAT/cdatweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UV-CDAT/cdatweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UV-CDAT/cdatweb/teams","hooks_url":"https://api.github.com/repos/UV-CDAT/cdatweb/hooks","issue_events_url":"https://api.github.com/repos/UV-CDAT/cdatweb/issues/events{/number}","events_url":"https://api.github.com/repos/UV-CDAT/cdatweb/events","assignees_url":"https://api.github.com/repos/UV-CDAT/cdatweb/assignees{/user}","branches_url":"https://api.github.com/repos/UV-CDAT/cdatweb/branches{/branch}","tags_url":"https://api.github.com/repos/UV-CDAT/cdatweb/tags","blobs_url":"https://api.github.com/repos/UV-CDAT/cdatweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UV-CDAT/cdatweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UV-CDAT/cdatweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/UV-CDAT/cdatweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UV-CDAT/cdatweb/statuses/{sha}","languages_url":"https://api.github.com/repos/UV-CDAT/cdatweb/languages","stargazers_url":"https://api.github.com/repos/UV-CDAT/cdatweb/stargazers","contributors_url":"https://api.github.com/repos/UV-CDAT/cdatweb/contributors","subscribers_url":"https://api.github.com/repos/UV-CDAT/cdatweb/subscribers","subscription_url":"https://api.github.com/repos/UV-CDAT/cdatweb/subscription","commits_url":"https://api.github.com/repos/UV-CDAT/cdatweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/UV-CDAT/cdatweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/UV-CDAT/cdatweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/UV-CDAT/cdatweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/UV-CDAT/cdatweb/contents/{+path}","compare_url":"https://api.github.com/repos/UV-CDAT/cdatweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UV-CDAT/cdatweb/merges","archive_url":"https://api.github.com/repos/UV-CDAT/cdatweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UV-CDAT/cdatweb/downloads","issues_url":"https://api.github.com/repos/UV-CDAT/cdatweb/issues{/number}","pulls_url":"https://api.github.com/repos/UV-CDAT/cdatweb/pulls{/number}","milestones_url":"https://api.github.com/repos/UV-CDAT/cdatweb/milestones{/number}","notifications_url":"https://api.github.com/repos/UV-CDAT/cdatweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UV-CDAT/cdatweb/labels{/name}","releases_url":"https://api.github.com/repos/UV-CDAT/cdatweb/releases{/id}","deployments_url":"https://api.github.com/repos/UV-CDAT/cdatweb/deployments","created_at":"2013-10-31T13:29:23Z","updated_at":"2016-01-11T17:38:30Z","pushed_at":"2016-02-11T23:05:02Z","git_url":"git://github.com/UV-CDAT/cdatweb.git","ssh_url":"git@github.com:UV-CDAT/cdatweb.git","clone_url":"https://github.com/UV-CDAT/cdatweb.git","svn_url":"https://github.com/UV-CDAT/cdatweb","homepage":null,"size":9484,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":19,"forks":5,"open_issues":19,"watchers":6,"default_branch":"master"}},"base":{"label":"UV-CDAT:master","ref":"master","sha":"76c49f4d51c939a29eab95fdf0cd4690674568b1","user":{"login":"UV-CDAT","id":2781444,"avatar_url":"https://avatars.githubusercontent.com/u/2781444?v=3","gravatar_id":"","url":"https://api.github.com/users/UV-CDAT","html_url":"https://github.com/UV-CDAT","followers_url":"https://api.github.com/users/UV-CDAT/followers","following_url":"https://api.github.com/users/UV-CDAT/following{/other_user}","gists_url":"https://api.github.com/users/UV-CDAT/gists{/gist_id}","starred_url":"https://api.github.com/users/UV-CDAT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UV-CDAT/subscriptions","organizations_url":"https://api.github.com/users/UV-CDAT/orgs","repos_url":"https://api.github.com/users/UV-CDAT/repos","events_url":"https://api.github.com/users/UV-CDAT/events{/privacy}","received_events_url":"https://api.github.com/users/UV-CDAT/received_events","type":"Organization","site_admin":false},"repo":{"id":14017672,"name":"cdatweb","full_name":"UV-CDAT/cdatweb","owner":{"login":"UV-CDAT","id":2781444,"avatar_url":"https://avatars.githubusercontent.com/u/2781444?v=3","gravatar_id":"","url":"https://api.github.com/users/UV-CDAT","html_url":"https://github.com/UV-CDAT","followers_url":"https://api.github.com/users/UV-CDAT/followers","following_url":"https://api.github.com/users/UV-CDAT/following{/other_user}","gists_url":"https://api.github.com/users/UV-CDAT/gists{/gist_id}","starred_url":"https://api.github.com/users/UV-CDAT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UV-CDAT/subscriptions","organizations_url":"https://api.github.com/users/UV-CDAT/orgs","repos_url":"https://api.github.com/users/UV-CDAT/repos","events_url":"https://api.github.com/users/UV-CDAT/events{/privacy}","received_events_url":"https://api.github.com/users/UV-CDAT/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UV-CDAT/cdatweb","description":"Web visualization framework of UV-CDAT","fork":false,"url":"https://api.github.com/repos/UV-CDAT/cdatweb","forks_url":"https://api.github.com/repos/UV-CDAT/cdatweb/forks","keys_url":"https://api.github.com/repos/UV-CDAT/cdatweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UV-CDAT/cdatweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UV-CDAT/cdatweb/teams","hooks_url":"https://api.github.com/repos/UV-CDAT/cdatweb/hooks","issue_events_url":"https://api.github.com/repos/UV-CDAT/cdatweb/issues/events{/number}","events_url":"https://api.github.com/repos/UV-CDAT/cdatweb/events","assignees_url":"https://api.github.com/repos/UV-CDAT/cdatweb/assignees{/user}","branches_url":"https://api.github.com/repos/UV-CDAT/cdatweb/branches{/branch}","tags_url":"https://api.github.com/repos/UV-CDAT/cdatweb/tags","blobs_url":"https://api.github.com/repos/UV-CDAT/cdatweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UV-CDAT/cdatweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UV-CDAT/cdatweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/UV-CDAT/cdatweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UV-CDAT/cdatweb/statuses/{sha}","languages_url":"https://api.github.com/repos/UV-CDAT/cdatweb/languages","stargazers_url":"https://api.github.com/repos/UV-CDAT/cdatweb/stargazers","contributors_url":"https://api.github.com/repos/UV-CDAT/cdatweb/contributors","subscribers_url":"https://api.github.com/repos/UV-CDAT/cdatweb/subscribers","subscription_url":"https://api.github.com/repos/UV-CDAT/cdatweb/subscription","commits_url":"https://api.github.com/repos/UV-CDAT/cdatweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/UV-CDAT/cdatweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/UV-CDAT/cdatweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/UV-CDAT/cdatweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/UV-CDAT/cdatweb/contents/{+path}","compare_url":"https://api.github.com/repos/UV-CDAT/cdatweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UV-CDAT/cdatweb/merges","archive_url":"https://api.github.com/repos/UV-CDAT/cdatweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UV-CDAT/cdatweb/downloads","issues_url":"https://api.github.com/repos/UV-CDAT/cdatweb/issues{/number}","pulls_url":"https://api.github.com/repos/UV-CDAT/cdatweb/pulls{/number}","milestones_url":"https://api.github.com/repos/UV-CDAT/cdatweb/milestones{/number}","notifications_url":"https://api.github.com/repos/UV-CDAT/cdatweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UV-CDAT/cdatweb/labels{/name}","releases_url":"https://api.github.com/repos/UV-CDAT/cdatweb/releases{/id}","deployments_url":"https://api.github.com/repos/UV-CDAT/cdatweb/deployments","created_at":"2013-10-31T13:29:23Z","updated_at":"2016-01-11T17:38:30Z","pushed_at":"2016-02-11T23:05:02Z","git_url":"git://github.com/UV-CDAT/cdatweb.git","ssh_url":"git@github.com:UV-CDAT/cdatweb.git","clone_url":"https://github.com/UV-CDAT/cdatweb.git","svn_url":"https://github.com/UV-CDAT/cdatweb","homepage":null,"size":9484,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":19,"forks":5,"open_issues":19,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UV-CDAT/cdatweb/pulls/98"},"html":{"href":"https://github.com/UV-CDAT/cdatweb/pull/98"},"issue":{"href":"https://api.github.com/repos/UV-CDAT/cdatweb/issues/98"},"comments":{"href":"https://api.github.com/repos/UV-CDAT/cdatweb/issues/98/comments"},"review_comments":{"href":"https://api.github.com/repos/UV-CDAT/cdatweb/pulls/98/comments"},"review_comment":{"href":"https://api.github.com/repos/UV-CDAT/cdatweb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UV-CDAT/cdatweb/pulls/98/commits"},"statuses":{"href":"https://api.github.com/repos/UV-CDAT/cdatweb/statuses/cea0f38ce81da47918a60f06d1a7a270709e9f3c"}}}}