home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where author_association = "CONTRIBUTOR" and issue = 192122307 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

  • j08lue 3

issue 1

  • sel with method 'nearest' fails with AssertionError · 3 ✖

author_association 1

  • CONTRIBUTOR · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
281075869 https://github.com/pydata/xarray/issues/1140#issuecomment-281075869 https://api.github.com/repos/pydata/xarray/issues/1140 MDEyOklzc3VlQ29tbWVudDI4MTA3NTg2OQ== j08lue 3404817 2017-02-20T13:13:07Z 2017-02-20T13:13:07Z CONTRIBUTOR

@JamesSample excellent work confirming the limited scope.

I am quite sure that the issue is with this line: https://github.com/pydata/xarray/blob/v0.9.1/xarray/core/variable.py#L375-L376

dims = tuple(dim for k, dim in zip(key, self.dims) if not isinstance(k, (int, np.integer)))

When you run the test case I added in #1184, you will see that, inside __getitem__, key is a tuple with an empty array inside (key = (np.array(0, dtype=np.int64),)).

With that value, isinstance(key[0], (int, np.integer)) is False on 64 bit Windows and so dims=('time',), which has length 1.

But values = self._indexable_data[key] gives a zero-dimension array, such that values.ndim == 0...

I am unable to tell which of the two sides of the assertion expression is unexpected...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  sel with method 'nearest' fails with AssertionError 192122307
281038974 https://github.com/pydata/xarray/issues/1140#issuecomment-281038974 https://api.github.com/repos/pydata/xarray/issues/1140 MDEyOklzc3VlQ29tbWVudDI4MTAzODk3NA== j08lue 3404817 2017-02-20T10:13:45Z 2017-02-20T10:13:45Z CONTRIBUTOR

@JamesSample Thanks for restoring my credibility a bit here... But, no, I did not figure this out yet.

Appveyor apparently does not have the combination Windows 64 bit + Python 2.7 (https://ci.appveyor.com/project/jhamman/xarray-injyf/build/1.0.659), maybe that is why it does not reproduce the error?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  sel with method 'nearest' fails with AssertionError 192122307
269136711 https://github.com/pydata/xarray/issues/1140#issuecomment-269136711 https://api.github.com/repos/pydata/xarray/issues/1140 MDEyOklzc3VlQ29tbWVudDI2OTEzNjcxMQ== j08lue 3404817 2016-12-25T20:41:41Z 2016-12-25T20:41:41Z CONTRIBUTOR

Yes, this is Python 2. :flushed: Let's see what Travis & Co say.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  sel with method 'nearest' fails with AssertionError 192122307

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