home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 166511736 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 2

  • shoyer 2
  • robintw 1

author_association 2

  • MEMBER 2
  • CONTRIBUTOR 1

issue 1

  • KeyError on saving to NetCDF - due to objects in attrs? · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
233874844 https://github.com/pydata/xarray/issues/911#issuecomment-233874844 https://api.github.com/repos/pydata/xarray/issues/911 MDEyOklzc3VlQ29tbWVudDIzMzg3NDg0NA== shoyer 1217238 2016-07-20T08:02:28Z 2016-07-20T08:02:28Z MEMBER

Would you be happy for me to submit a PR updating the xarray docs to note that you can only export attributes with certain values to a netCDF file?

Yes, this would be greatly appreciated!

(and possibly, longer-term, we could provide an error inside xarray if you try to save out a file with objects as attributes)

This is also a good idea.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  KeyError on saving to NetCDF - due to objects in attrs? 166511736
233874116 https://github.com/pydata/xarray/issues/911#issuecomment-233874116 https://api.github.com/repos/pydata/xarray/issues/911 MDEyOklzc3VlQ29tbWVudDIzMzg3NDExNg== robintw 296686 2016-07-20T08:00:08Z 2016-07-20T08:00:08Z CONTRIBUTOR

Thanks. I might raise an issue on the netCDF4-Python project to see if we can improve the error message.

Would you be happy for me to submit a PR updating the xarray docs to note that you can only export attributes with certain values to a netCDF file? (and possibly, longer-term, we could provide an error inside xarray if you try to save out a file with objects as attributes)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  KeyError on saving to NetCDF - due to objects in attrs? 166511736
233864270 https://github.com/pydata/xarray/issues/911#issuecomment-233864270 https://api.github.com/repos/pydata/xarray/issues/911 MDEyOklzc3VlQ29tbWVudDIzMzg2NDI3MA== shoyer 1217238 2016-07-20T07:25:37Z 2016-07-20T07:25:37Z MEMBER

Indeed, this is a poor error message from netCDF4-Python!

I believe the netCDF file format itself supports numeric scalar types, 1D arrays of numbers and strings for attributes. For anything beyond that, you'll need to come up with your own encoding schema.

One good choice (for representing coordinate systems) might be to use CF conventions, but I don't know any automated tools for handling this.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  KeyError on saving to NetCDF - due to objects in attrs? 166511736

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 1927.929ms · About: xarray-datasette