home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

14 rows where 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 4

  • naught101 6
  • shoyer 5
  • spencerahill 2
  • spencerkclark 1

author_association 3

  • MEMBER 6
  • NONE 6
  • CONTRIBUTOR 2

issue 1

  • ValueError: Buffer has wrong number of dimensions (expected 1, got 2) · 14 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
159637376 https://github.com/pydata/xarray/issues/665#issuecomment-159637376 https://api.github.com/repos/pydata/xarray/issues/665 MDEyOklzc3VlQ29tbWVudDE1OTYzNzM3Ng== spencerahill 6200806 2015-11-25T15:15:27Z 2015-11-25T20:48:40Z CONTRIBUTOR

~~@spencerkclark and I have come across the same problem in one of the atmospheric models we work with, but in our case in addition to the time bounds array the latitude and longitude bounds are also 2D. I mention this because I suspect this wouldn't be resolved by @shoyer 's previous comment re: fixing decode_cf_timedelta.~~ I was wrong here; see comments in #667

{
    "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
159713922 https://github.com/pydata/xarray/issues/665#issuecomment-159713922 https://api.github.com/repos/pydata/xarray/issues/665 MDEyOklzc3VlQ29tbWVudDE1OTcxMzkyMg== spencerahill 6200806 2015-11-25T19:49:00Z 2015-11-25T20:48:16Z CONTRIBUTOR

@shoyer Sure, just did: #667. ~~My suspicion is that it's ultimately the same underlying issue, which is simply that these bound arrays have a 2nd dimension that xray is having a hard time dealing with. Nevertheless, that it occurs in non-time coordinates as well implies that dealing with it solely through time-related methods won't solve everything.~~ I was wrong here; see comments in #667.

{
    "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
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
159423524 https://github.com/pydata/xarray/issues/665#issuecomment-159423524 https://api.github.com/repos/pydata/xarray/issues/665 MDEyOklzc3VlQ29tbWVudDE1OTQyMzUyNA== naught101 167164 2015-11-24T22:15:36Z 2015-11-24T22:15:36Z NONE

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.

{
    "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
159421893 https://github.com/pydata/xarray/issues/665#issuecomment-159421893 https://api.github.com/repos/pydata/xarray/issues/665 MDEyOklzc3VlQ29tbWVudDE1OTQyMTg5Mw== naught101 167164 2015-11-24T22:10:19Z 2015-11-24T22:10:19Z NONE

@shoyer: the file is publically available, have you tried checking it on your set-up? The file is about 35Mb..

{
    "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
159418844 https://github.com/pydata/xarray/issues/665#issuecomment-159418844 https://api.github.com/repos/pydata/xarray/issues/665 MDEyOklzc3VlQ29tbWVudDE1OTQxODg0NA== naught101 167164 2015-11-24T22:03:25Z 2015-11-24T22:03:25Z NONE

Same problem with scipy - I'm not sure what I need to install to get pydap and h5netcdf working...

{
    "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
159153806 https://github.com/pydata/xarray/issues/665#issuecomment-159153806 https://api.github.com/repos/pydata/xarray/issues/665 MDEyOklzc3VlQ29tbWVudDE1OTE1MzgwNg== naught101 167164 2015-11-24T05:31:43Z 2015-11-24T05:31:43Z NONE

I updated to 1.2.1 from pypi, it still fails.

{
    "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
159146583 https://github.com/pydata/xarray/issues/665#issuecomment-159146583 https://api.github.com/repos/pydata/xarray/issues/665 MDEyOklzc3VlQ29tbWVudDE1OTE0NjU4Mw== naught101 167164 2015-11-24T04:28:52Z 2015-11-24T04:28:52Z NONE

$ conda list |grep -i cdf libnetcdf 4.3.3.1 1 netcdf4 1.1.9 np110py34_0

{
    "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
159141364 https://github.com/pydata/xarray/issues/665#issuecomment-159141364 https://api.github.com/repos/pydata/xarray/issues/665 MDEyOklzc3VlQ29tbWVudDE1OTE0MTM2NA== naught101 167164 2015-11-24T03:34:30Z 2015-11-24T03:34:30Z NONE

xray.version.version == '0.6.1' from anaconda, on python 3.4

{
    "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 14.308ms · About: xarray-datasette