{"action":"created","comment":{"url":"https://api.github.com/repos/sgrid/pysgrid/pulls/comments/30162333","id":30162333,"diff_hunk":"@@ -208,20 +220,15 @@ def save_as_netcdf(self, filepath):\n                                                      center_lat_obj.dtype, \n                                                      center_lat_obj.dimensions\n                                                      )\n-            grid_node_lon = nclocal.createVariable(node_lon, \n-                                                   node_lon_obj.dtype, \n-                                                   node_lon_obj.dimensions\n-                                                   )\n-            grid_node_lat = nclocal.createVariable(node_lat, \n-                                                   node_lat_obj.dtype, \n-                                                   node_lat_obj.dimensions\n-                                                   )\n             grid_var_obj = getattr(self, grid_var)\n             grid_vars = nclocal.createVariable(grid_var, grid_var_obj.dtype)\n             # not the most robust here... time and angle are hard-coded\n             # need to address this\n-            time_obj = getattr(self, 'time')\n-            grid_time = nclocal.createVariable('time', \n+            try:\n+                time_obj = getattr(self, 'time')\n+            except AttributeError:\n+                time_obj = getattr(self, 'Times')\n+            grid_time = nclocal.createVariable(time_obj.variable, ","path":"pysgrid/sgrid.py","position":47,"original_position":47,"commit_id":"096087c4cc1c9f430658879f59a31a2218618445","original_commit_id":"096087c4cc1c9f430658879f59a31a2218618445","user":{"login":"ocefpaf","id":950575,"avatar_url":"https://avatars.githubusercontent.com/u/950575?v=3","gravatar_id":"","url":"https://api.github.com/users/ocefpaf","html_url":"https://github.com/ocefpaf","followers_url":"https://api.github.com/users/ocefpaf/followers","following_url":"https://api.github.com/users/ocefpaf/following{/other_user}","gists_url":"https://api.github.com/users/ocefpaf/gists{/gist_id}","starred_url":"https://api.github.com/users/ocefpaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocefpaf/subscriptions","organizations_url":"https://api.github.com/users/ocefpaf/orgs","repos_url":"https://api.github.com/users/ocefpaf/repos","events_url":"https://api.github.com/users/ocefpaf/events{/privacy}","received_events_url":"https://api.github.com/users/ocefpaf/received_events","type":"User","site_admin":false},"body":"Are `time` and `Times` the only expected values to search?  If this list grows I recommend the following approach\r\n\r\n```python\r\nsearch_attr_list = ['time', 'Time']\r\n\r\nfilter(None, [getattr(a, attr, None) for attr in attr_list])\r\n```","created_at":"2015-05-12T18:05:02Z","updated_at":"2015-05-12T18:05:02Z","html_url":"https://github.com/sgrid/pysgrid/pull/40#discussion_r30162333","pull_request_url":"https://api.github.com/repos/sgrid/pysgrid/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/sgrid/pysgrid/pulls/comments/30162333"},"html":{"href":"https://github.com/sgrid/pysgrid/pull/40#discussion_r30162333"},"pull_request":{"href":"https://api.github.com/repos/sgrid/pysgrid/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/sgrid/pysgrid/pulls/40","id":35160317,"html_url":"https://github.com/sgrid/pysgrid/pull/40","diff_url":"https://github.com/sgrid/pysgrid/pull/40.diff","patch_url":"https://github.com/sgrid/pysgrid/pull/40.patch","issue_url":"https://api.github.com/repos/sgrid/pysgrid/issues/40","number":40,"state":"open","locked":false,"title":"saving of datasets that do not have node_coordinates","user":{"login":"ayan-usgs","id":1903370,"avatar_url":"https://avatars.githubusercontent.com/u/1903370?v=3","gravatar_id":"","url":"https://api.github.com/users/ayan-usgs","html_url":"https://github.com/ayan-usgs","followers_url":"https://api.github.com/users/ayan-usgs/followers","following_url":"https://api.github.com/users/ayan-usgs/following{/other_user}","gists_url":"https://api.github.com/users/ayan-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/ayan-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayan-usgs/subscriptions","organizations_url":"https://api.github.com/users/ayan-usgs/orgs","repos_url":"https://api.github.com/users/ayan-usgs/repos","events_url":"https://api.github.com/users/ayan-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/ayan-usgs/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-11T19:27:45Z","updated_at":"2015-05-12T18:05:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"687345808e005ede3af94e9f1a501a6c6eeacfc5","assignee":{"login":"ocefpaf","id":950575,"avatar_url":"https://avatars.githubusercontent.com/u/950575?v=3","gravatar_id":"","url":"https://api.github.com/users/ocefpaf","html_url":"https://github.com/ocefpaf","followers_url":"https://api.github.com/users/ocefpaf/followers","following_url":"https://api.github.com/users/ocefpaf/following{/other_user}","gists_url":"https://api.github.com/users/ocefpaf/gists{/gist_id}","starred_url":"https://api.github.com/users/ocefpaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocefpaf/subscriptions","organizations_url":"https://api.github.com/users/ocefpaf/orgs","repos_url":"https://api.github.com/users/ocefpaf/repos","events_url":"https://api.github.com/users/ocefpaf/events{/privacy}","received_events_url":"https://api.github.com/users/ocefpaf/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/sgrid/pysgrid/pulls/40/commits","review_comments_url":"https://api.github.com/repos/sgrid/pysgrid/pulls/40/comments","review_comment_url":"https://api.github.com/repos/sgrid/pysgrid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sgrid/pysgrid/issues/40/comments","statuses_url":"https://api.github.com/repos/sgrid/pysgrid/statuses/096087c4cc1c9f430658879f59a31a2218618445","head":{"label":"ayan-usgs:master","ref":"master","sha":"096087c4cc1c9f430658879f59a31a2218618445","user":{"login":"ayan-usgs","id":1903370,"avatar_url":"https://avatars.githubusercontent.com/u/1903370?v=3","gravatar_id":"","url":"https://api.github.com/users/ayan-usgs","html_url":"https://github.com/ayan-usgs","followers_url":"https://api.github.com/users/ayan-usgs/followers","following_url":"https://api.github.com/users/ayan-usgs/following{/other_user}","gists_url":"https://api.github.com/users/ayan-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/ayan-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayan-usgs/subscriptions","organizations_url":"https://api.github.com/users/ayan-usgs/orgs","repos_url":"https://api.github.com/users/ayan-usgs/repos","events_url":"https://api.github.com/users/ayan-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/ayan-usgs/received_events","type":"User","site_admin":false},"repo":{"id":32537031,"name":"pysgrid","full_name":"ayan-usgs/pysgrid","owner":{"login":"ayan-usgs","id":1903370,"avatar_url":"https://avatars.githubusercontent.com/u/1903370?v=3","gravatar_id":"","url":"https://api.github.com/users/ayan-usgs","html_url":"https://github.com/ayan-usgs","followers_url":"https://api.github.com/users/ayan-usgs/followers","following_url":"https://api.github.com/users/ayan-usgs/following{/other_user}","gists_url":"https://api.github.com/users/ayan-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/ayan-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayan-usgs/subscriptions","organizations_url":"https://api.github.com/users/ayan-usgs/orgs","repos_url":"https://api.github.com/users/ayan-usgs/repos","events_url":"https://api.github.com/users/ayan-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/ayan-usgs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ayan-usgs/pysgrid","description":"Python tools for sgrid","fork":true,"url":"https://api.github.com/repos/ayan-usgs/pysgrid","forks_url":"https://api.github.com/repos/ayan-usgs/pysgrid/forks","keys_url":"https://api.github.com/repos/ayan-usgs/pysgrid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ayan-usgs/pysgrid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ayan-usgs/pysgrid/teams","hooks_url":"https://api.github.com/repos/ayan-usgs/pysgrid/hooks","issue_events_url":"https://api.github.com/repos/ayan-usgs/pysgrid/issues/events{/number}","events_url":"https://api.github.com/repos/ayan-usgs/pysgrid/events","assignees_url":"https://api.github.com/repos/ayan-usgs/pysgrid/assignees{/user}","branches_url":"https://api.github.com/repos/ayan-usgs/pysgrid/branches{/branch}","tags_url":"https://api.github.com/repos/ayan-usgs/pysgrid/tags","blobs_url":"https://api.github.com/repos/ayan-usgs/pysgrid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ayan-usgs/pysgrid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ayan-usgs/pysgrid/git/refs{/sha}","trees_url":"https://api.github.com/repos/ayan-usgs/pysgrid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ayan-usgs/pysgrid/statuses/{sha}","languages_url":"https://api.github.com/repos/ayan-usgs/pysgrid/languages","stargazers_url":"https://api.github.com/repos/ayan-usgs/pysgrid/stargazers","contributors_url":"https://api.github.com/repos/ayan-usgs/pysgrid/contributors","subscribers_url":"https://api.github.com/repos/ayan-usgs/pysgrid/subscribers","subscription_url":"https://api.github.com/repos/ayan-usgs/pysgrid/subscription","commits_url":"https://api.github.com/repos/ayan-usgs/pysgrid/commits{/sha}","git_commits_url":"https://api.github.com/repos/ayan-usgs/pysgrid/git/commits{/sha}","comments_url":"https://api.github.com/repos/ayan-usgs/pysgrid/comments{/number}","issue_comment_url":"https://api.github.com/repos/ayan-usgs/pysgrid/issues/comments{/number}","contents_url":"https://api.github.com/repos/ayan-usgs/pysgrid/contents/{+path}","compare_url":"https://api.github.com/repos/ayan-usgs/pysgrid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ayan-usgs/pysgrid/merges","archive_url":"https://api.github.com/repos/ayan-usgs/pysgrid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ayan-usgs/pysgrid/downloads","issues_url":"https://api.github.com/repos/ayan-usgs/pysgrid/issues{/number}","pulls_url":"https://api.github.com/repos/ayan-usgs/pysgrid/pulls{/number}","milestones_url":"https://api.github.com/repos/ayan-usgs/pysgrid/milestones{/number}","notifications_url":"https://api.github.com/repos/ayan-usgs/pysgrid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ayan-usgs/pysgrid/labels{/name}","releases_url":"https://api.github.com/repos/ayan-usgs/pysgrid/releases{/id}","created_at":"2015-03-19T17:42:29Z","updated_at":"2015-05-07T16:08:48Z","pushed_at":"2015-05-11T19:23:02Z","git_url":"git://github.com/ayan-usgs/pysgrid.git","ssh_url":"git@github.com:ayan-usgs/pysgrid.git","clone_url":"https://github.com/ayan-usgs/pysgrid.git","svn_url":"https://github.com/ayan-usgs/pysgrid","homepage":null,"size":705,"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":"sgrid:master","ref":"master","sha":"71a960d3f8b00a74ae7a00f48cf5a1b4f45b3809","user":{"login":"sgrid","id":10886425,"avatar_url":"https://avatars.githubusercontent.com/u/10886425?v=3","gravatar_id":"","url":"https://api.github.com/users/sgrid","html_url":"https://github.com/sgrid","followers_url":"https://api.github.com/users/sgrid/followers","following_url":"https://api.github.com/users/sgrid/following{/other_user}","gists_url":"https://api.github.com/users/sgrid/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrid/subscriptions","organizations_url":"https://api.github.com/users/sgrid/orgs","repos_url":"https://api.github.com/users/sgrid/repos","events_url":"https://api.github.com/users/sgrid/events{/privacy}","received_events_url":"https://api.github.com/users/sgrid/received_events","type":"Organization","site_admin":false},"repo":{"id":30425660,"name":"pysgrid","full_name":"sgrid/pysgrid","owner":{"login":"sgrid","id":10886425,"avatar_url":"https://avatars.githubusercontent.com/u/10886425?v=3","gravatar_id":"","url":"https://api.github.com/users/sgrid","html_url":"https://github.com/sgrid","followers_url":"https://api.github.com/users/sgrid/followers","following_url":"https://api.github.com/users/sgrid/following{/other_user}","gists_url":"https://api.github.com/users/sgrid/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrid/subscriptions","organizations_url":"https://api.github.com/users/sgrid/orgs","repos_url":"https://api.github.com/users/sgrid/repos","events_url":"https://api.github.com/users/sgrid/events{/privacy}","received_events_url":"https://api.github.com/users/sgrid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sgrid/pysgrid","description":"Python tools for sgrid","fork":false,"url":"https://api.github.com/repos/sgrid/pysgrid","forks_url":"https://api.github.com/repos/sgrid/pysgrid/forks","keys_url":"https://api.github.com/repos/sgrid/pysgrid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgrid/pysgrid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgrid/pysgrid/teams","hooks_url":"https://api.github.com/repos/sgrid/pysgrid/hooks","issue_events_url":"https://api.github.com/repos/sgrid/pysgrid/issues/events{/number}","events_url":"https://api.github.com/repos/sgrid/pysgrid/events","assignees_url":"https://api.github.com/repos/sgrid/pysgrid/assignees{/user}","branches_url":"https://api.github.com/repos/sgrid/pysgrid/branches{/branch}","tags_url":"https://api.github.com/repos/sgrid/pysgrid/tags","blobs_url":"https://api.github.com/repos/sgrid/pysgrid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgrid/pysgrid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgrid/pysgrid/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgrid/pysgrid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgrid/pysgrid/statuses/{sha}","languages_url":"https://api.github.com/repos/sgrid/pysgrid/languages","stargazers_url":"https://api.github.com/repos/sgrid/pysgrid/stargazers","contributors_url":"https://api.github.com/repos/sgrid/pysgrid/contributors","subscribers_url":"https://api.github.com/repos/sgrid/pysgrid/subscribers","subscription_url":"https://api.github.com/repos/sgrid/pysgrid/subscription","commits_url":"https://api.github.com/repos/sgrid/pysgrid/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgrid/pysgrid/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgrid/pysgrid/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgrid/pysgrid/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgrid/pysgrid/contents/{+path}","compare_url":"https://api.github.com/repos/sgrid/pysgrid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgrid/pysgrid/merges","archive_url":"https://api.github.com/repos/sgrid/pysgrid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgrid/pysgrid/downloads","issues_url":"https://api.github.com/repos/sgrid/pysgrid/issues{/number}","pulls_url":"https://api.github.com/repos/sgrid/pysgrid/pulls{/number}","milestones_url":"https://api.github.com/repos/sgrid/pysgrid/milestones{/number}","notifications_url":"https://api.github.com/repos/sgrid/pysgrid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgrid/pysgrid/labels{/name}","releases_url":"https://api.github.com/repos/sgrid/pysgrid/releases{/id}","created_at":"2015-02-06T18:02:49Z","updated_at":"2015-05-06T13:01:44Z","pushed_at":"2015-05-11T19:27:45Z","git_url":"git://github.com/sgrid/pysgrid.git","ssh_url":"git@github.com:sgrid/pysgrid.git","clone_url":"https://github.com/sgrid/pysgrid.git","svn_url":"https://github.com/sgrid/pysgrid","homepage":null,"size":45531,"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":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sgrid/pysgrid/pulls/40"},"html":{"href":"https://github.com/sgrid/pysgrid/pull/40"},"issue":{"href":"https://api.github.com/repos/sgrid/pysgrid/issues/40"},"comments":{"href":"https://api.github.com/repos/sgrid/pysgrid/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/sgrid/pysgrid/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/sgrid/pysgrid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sgrid/pysgrid/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/sgrid/pysgrid/statuses/096087c4cc1c9f430658879f59a31a2218618445"}}}}