home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 432019600 and user = 1217238 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • shoyer · 3 ✖

issue 1

  • Safely open / close netCDF files without resource locking · 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
482818859 https://github.com/pydata/xarray/issues/2887#issuecomment-482818859 https://api.github.com/repos/pydata/xarray/issues/2887 MDEyOklzc3VlQ29tbWVudDQ4MjgxODg1OQ== shoyer 1217238 2019-04-13T15:10:22Z 2019-04-14T21:12:17Z MEMBER

Just to clarify, load_dataset would be equivalent to: python def load_dataset(*args, **kwargs): with xarray.open_dataset(*args, **kwargs) as ds: return ds.load() This also seems pretty reasonable to me. I’ve written a version of this utility function a handful of times, so I at least would find it useful.

Would we also want load_dataarray?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Safely open / close netCDF files without resource locking 432019600
482637696 https://github.com/pydata/xarray/issues/2887#issuecomment-482637696 https://api.github.com/repos/pydata/xarray/issues/2887 MDEyOklzc3VlQ29tbWVudDQ4MjYzNzY5Ng== shoyer 1217238 2019-04-12T16:26:17Z 2019-04-12T16:26:17Z MEMBER

I think this is more of a limitation of netCDF-C / HDF5 than xarray. For example, this example works if you use SciPy's netCDF reader/writer: ``` import xarray as xr ds = xr.Dataset({'var': ('x', [0, 1, 2])}) ds.to_netcdf('test.nc', engine='scipy')

ds_read = xr.open_dataset('test.nc', engine='scipy') ds.to_netcdf('test.nc', engine='scipy') ```

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Safely open / close netCDF files without resource locking 432019600
482357656 https://github.com/pydata/xarray/issues/2887#issuecomment-482357656 https://api.github.com/repos/pydata/xarray/issues/2887 MDEyOklzc3VlQ29tbWVudDQ4MjM1NzY1Ng== shoyer 1217238 2019-04-11T22:58:37Z 2019-04-11T22:58:47Z MEMBER

This pattern should work: python with xr.open_dataset('test.nc') as ds: ds.load() ds.to_netcdf('test.nc')

{
    "total_count": 3,
    "+1": 3,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Safely open / close netCDF files without resource locking 432019600

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 186.976ms · About: xarray-datasette