home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

6 rows where author_association = "MEMBER" and issue = 118525173 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 5
  • spencerkclark 1

issue 1

  • ValueError: Buffer has wrong number of dimensions (expected 1, got 2) · 6 ✖

author_association 1

  • MEMBER · 6 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
159723927 https://github.com/pydata/xarray/issues/665#issuecomment-159723927 https://api.github.com/repos/pydata/xarray/issues/665 MDEyOklzc3VlQ29tbWVudDE1OTcyMzkyNw== spencerkclark 6628425 2015-11-25T20:29:27Z 2015-11-25T20:29:27Z MEMBER

@spencerahill I recall we only had this specific issue with the 2D time_bounds variable. Perhaps you have a specific example in mind, but in my experience xray handles reading in 2D lat and lon bounds variables OK.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ValueError: Buffer has wrong number of dimensions (expected 1, got 2) 118525173
159678567 https://github.com/pydata/xarray/issues/665#issuecomment-159678567 https://api.github.com/repos/pydata/xarray/issues/665 MDEyOklzc3VlQ29tbWVudDE1OTY3ODU2Nw== shoyer 1217238 2015-11-25T17:18:44Z 2015-11-25T17:18:44Z MEMBER

@spencerahill if you get a similar error with 2d latitude/longitude arrays please do report it in a separate issue. I'm pretty sure this one is specific to timedeltas.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ValueError: Buffer has wrong number of dimensions (expected 1, got 2) 118525173
159423714 https://github.com/pydata/xarray/issues/665#issuecomment-159423714 https://api.github.com/repos/pydata/xarray/issues/665 MDEyOklzc3VlQ29tbWVudDE1OTQyMzcxNA== shoyer 1217238 2015-11-24T22:16:29Z 2015-11-24T22:16:29Z MEMBER

No worries -- thanks for the bug report! I'm sure someone will get to this eventually.

On Tue, Nov 24, 2015 at 2:15 PM, naught101 notifications@github.com wrote:

Sorry, this is just something I stumbled across in a workshop, it's not a problem that's affecting my work, so I don't have much time for it. But I'll make the MOM developers aware of it - they might have an interest in helping out.

— Reply to this email directly or view it on GitHub https://github.com/xray/xray/issues/665#issuecomment-159423524.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ValueError: Buffer has wrong number of dimensions (expected 1, got 2) 118525173
159421963 https://github.com/pydata/xarray/issues/665#issuecomment-159421963 https://api.github.com/repos/pydata/xarray/issues/665 MDEyOklzc3VlQ29tbWVudDE1OTQyMTk2Mw== shoyer 1217238 2015-11-24T22:10:40Z 2015-11-24T22:10:40Z MEMBER

OK, I just tried this out and this is a legit bug.

The array that needs to be converted to time deltas is 2D, and pandas can't handle that. We need to flatten out the array in decode_cf_timedelta and then unflatten it, similarly to what we do in decode_cf_datetime.

Any interest in putting together a pull request with a fix?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ValueError: Buffer has wrong number of dimensions (expected 1, got 2) 118525173
159193866 https://github.com/pydata/xarray/issues/665#issuecomment-159193866 https://api.github.com/repos/pydata/xarray/issues/665 MDEyOklzc3VlQ29tbWVudDE1OTE5Mzg2Ng== shoyer 1217238 2015-11-24T08:29:54Z 2015-11-24T08:29:54Z MEMBER

Did you try specifying a different engine to read the netcdf file? That might at least give you different error ;).

On Mon, Nov 23, 2015 at 9:31 PM, naught101 notifications@github.com wrote:

I updated to 1.2.1 from pypi, it still fails.

Reply to this email directly or view it on GitHub: https://github.com/xray/xray/issues/665#issuecomment-159153806

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ValueError: Buffer has wrong number of dimensions (expected 1, got 2) 118525173
159143368 https://github.com/pydata/xarray/issues/665#issuecomment-159143368 https://api.github.com/repos/pydata/xarray/issues/665 MDEyOklzc3VlQ29tbWVudDE1OTE0MzM2OA== shoyer 1217238 2015-11-24T03:54:24Z 2015-11-24T03:54:24Z MEMBER

What version of netcdf4-Python are you using? I have a strong hunch this is the same issue as https://github.com/xray/xray/issues/662

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ValueError: Buffer has wrong number of dimensions (expected 1, got 2) 118525173

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