home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 604210297 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

  • kmuehlbauer 1
  • lamorton 1

author_association 2

  • MEMBER 1
  • NONE 1

issue 1

  • Nondeterministic bug with bytestring decoding · 2 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
617402384 https://github.com/pydata/xarray/issues/3991#issuecomment-617402384 https://api.github.com/repos/pydata/xarray/issues/3991 MDEyOklzc3VlQ29tbWVudDYxNzQwMjM4NA== lamorton 23484003 2020-04-21T20:39:56Z 2020-04-21T20:39:56Z NONE

Thanks, I'll close this, since it looks like an issue of bad input. I can't use h5netcdf due to conda env nonsense, but I've worked around it by just dropping the 'name' variable during loading.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Nondeterministic bug with bytestring decoding 604210297
617375423 https://github.com/pydata/xarray/issues/3991#issuecomment-617375423 https://api.github.com/repos/pydata/xarray/issues/3991 MDEyOklzc3VlQ29tbWVudDYxNzM3NTQyMw== kmuehlbauer 5821660 2020-04-21T19:45:02Z 2020-04-21T19:45:02Z MEMBER

@lamorton You can look at this in two different ways. First, try to use dtype="|S9" on both occasions, since this will apply the zero-termination which is needed for the string to be interpreted correctly by netcdf (IIRC).

python import h5py f = h5py.File("error_demo.h5",mode='w') f.create_dataset('name',shape=(),dtype="|S9",data=np.array([b'f(Pt,TE)'],dtype='|S9')) f.close() for i in range(20): xr.load_dataset("error_demo.h5") <xarray.Dataset> Dimensions: () Data variables: name <U8 'f(Pt,TE)'

Second, use backend='h5netcdf' to read it sidestepping netcdf:

python import h5py f = h5py.File("error_demo.h5",mode='w') f.create_dataset('name',shape=(),dtype="|S8",data=np.array([b'f(Pt,TE)'],dtype='|S8')) f.close() for i in range(20): ds = xr.load_dataset("error_demo.h5", backend='h5netcdf') <xarray.Dataset> Dimensions: () Data variables: name |S8 b'f(Pt,TE)'

From your expectations It seems that the zero-padding is the culprit, since the output of the 'h5netcdf' backend doesn't quite fit.
Unfortunately I do not have links at hand with further comments on string handling differences between netcdf/hdf5. There are quite some...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Nondeterministic bug with bytestring decoding 604210297

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