home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where author_association = "MEMBER" and issue = 286072335 sorted by updated_at descending

✖
✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • shoyer 2
  • fmaussion 1

issue 1

  • WRF output : cannot serialize variable · 3 ✖

author_association 1

  • MEMBER · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
445921610 https://github.com/pydata/xarray/issues/1809#issuecomment-445921610 https://api.github.com/repos/pydata/xarray/issues/1809 MDEyOklzc3VlQ29tbWVudDQ0NTkyMTYxMA== shoyer 1217238 2018-12-10T18:31:31Z 2018-12-10T18:31:31Z MEMBER

@gbromley The best option is probably a loop, e.g., python def remove_problematic_attrs(ds): for variable in ds.variables.values(): if 'coordinates' in variable.attrs: del variable.attrs['coordinates']

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  WRF output : cannot serialize variable 286072335
391144127 https://github.com/pydata/xarray/issues/1809#issuecomment-391144127 https://api.github.com/repos/pydata/xarray/issues/1809 MDEyOklzc3VlQ29tbWVudDM5MTE0NDEyNw== shoyer 1217238 2018-05-22T21:18:41Z 2018-05-22T21:18:41Z MEMBER

See https://stackoverflow.com/questions/50475453/xarray-cannot-serialize-coordinates/50475925.

It seems like WRF may often produce netCDF files that lead to this issue. If the problem can be reproduced by simply opening and resaving a netCDF file then we may want to revisit our logic in xarray, because we always want xarray.open_dataset(input_path).to_netcdf(output_path) to work. If this is the case, it would be great if someone could share metadata for such a problematic netCDF file (e.g., from ncdump -h).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  WRF output : cannot serialize variable 286072335
355812453 https://github.com/pydata/xarray/issues/1809#issuecomment-355812453 https://api.github.com/repos/pydata/xarray/issues/1809 MDEyOklzc3VlQ29tbWVudDM1NTgxMjQ1Mw== fmaussion 10050469 2018-01-07T10:19:13Z 2018-01-07T10:19:13Z MEMBER

It looks like your variable has an attribute coordinates: try deleting it before writing the data.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  WRF output : cannot serialize variable 286072335

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 4566.842ms · About: xarray-datasette
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows