home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

10 rows where issue = 192122307 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 4

  • shoyer 3
  • j08lue 3
  • joschkazj 2
  • JamesSample 2

author_association 3

  • NONE 4
  • CONTRIBUTOR 3
  • MEMBER 3

issue 1

  • sel with method 'nearest' fails with AssertionError · 10 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
281598234 https://github.com/pydata/xarray/issues/1140#issuecomment-281598234 https://api.github.com/repos/pydata/xarray/issues/1140 MDEyOklzc3VlQ29tbWVudDI4MTU5ODIzNA== joschkazj 1842005 2017-02-22T08:10:23Z 2017-02-22T08:11:15Z NONE

At our institute we use Python (both v2.7 and 3.x) exclusively on x64 systems to make use of the entire memory on our workstations. Since all relevant (binary) scientific packages are released as 64-bit versions, 32 bit Python is obsolete for our use cases.

Just for reference (I don't develop on Windows), do we need to test both 32 and 64 bit Windows installs?

As some binary dependencies are involved, both have to be tested.

{
    "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
281411508 https://github.com/pydata/xarray/issues/1140#issuecomment-281411508 https://api.github.com/repos/pydata/xarray/issues/1140 MDEyOklzc3VlQ29tbWVudDI4MTQxMTUwOA== shoyer 1217238 2017-02-21T17:16:05Z 2017-02-21T17:16:05Z MEMBER

Just for reference (I don't develop on Windows), do we need to test both 32 and 64 bit Windows installs? It's not a big deal to add another configuration to the build matrix, but currently we only test Python 2.7 on 32-bit and 3.6 on 64-bit: https://github.com/pydata/xarray/blob/v0.9.1/appveyor.yml

{
    "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
281305689 https://github.com/pydata/xarray/issues/1140#issuecomment-281305689 https://api.github.com/repos/pydata/xarray/issues/1140 MDEyOklzc3VlQ29tbWVudDI4MTMwNTY4OQ== joschkazj 1842005 2017-02-21T10:34:41Z 2017-02-21T10:34:41Z NONE

I've just run into the same issue with the AssertionError on Windows 7 x64 with Python v2.7, netcdf4 1.2.4, numpy 1.11.3, pandas 0.19.2, xarray 0.8.2 and 0.9.1 (all packages from Anaconda repo).

Downgrading pandas to 0.18.1 solved the problem for me.

{
    "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
281188737 https://github.com/pydata/xarray/issues/1140#issuecomment-281188737 https://api.github.com/repos/pydata/xarray/issues/1140 MDEyOklzc3VlQ29tbWVudDI4MTE4ODczNw== shoyer 1217238 2017-02-20T21:44:42Z 2017-02-20T21:44:42Z MEMBER

Sounds like we need to add 64-bit Python 2.7 on Windows to our build matrix!

And also a more robust check for integer types in variable.py.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  sel with method 'nearest' fails with AssertionError 192122307
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
281043655 https://github.com/pydata/xarray/issues/1140#issuecomment-281043655 https://api.github.com/repos/pydata/xarray/issues/1140 MDEyOklzc3VlQ29tbWVudDI4MTA0MzY1NQ== JamesSample 12967176 2017-02-20T10:33:51Z 2017-02-20T10:33:51Z NONE

@j08lue Thanks for your response - that's interesting. I'm not familiar with Appveyor and hadn't realised what builds were being used.

As a test, I've just installed 32-bit WinPython 2.7 and xarray (still on my 64-bit Windows 10 machine) and everything works fine, so this does appear to be a specific issue with xarray and 64-bit Python 2.7.

{
    "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
280840391 https://github.com/pydata/xarray/issues/1140#issuecomment-280840391 https://api.github.com/repos/pydata/xarray/issues/1140 MDEyOklzc3VlQ29tbWVudDI4MDg0MDM5MQ== JamesSample 12967176 2017-02-18T11:45:00Z 2017-02-18T11:45:00Z NONE

Hi j08lue,

Just wondering if you ever figured this out? I'm having exactly the same issue on 64-bit Windows 10, using WinPython 2.7 and the following:

xarray 0.9.1 Pandas 0.19.1 Numpy 1.11.2

If I've understood the comments here correctly, it sounds as though others are struggling to reproduce the problem - even on Windows - so presumably it's something strange with our installations?

{
    "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
268944080 https://github.com/pydata/xarray/issues/1140#issuecomment-268944080 https://api.github.com/repos/pydata/xarray/issues/1140 MDEyOklzc3VlQ29tbWVudDI2ODk0NDA4MA== shoyer 1217238 2016-12-23T05:52:01Z 2016-12-23T05:52:01Z MEMBER

Sorry for the delay getting back to you.

I'm having trouble reproducing this on OS X. I assume you're running Python 2? Maybe this is a Windows thing? I'm a little baffled here.

One thing that would be very helpful is a pull request with a test case that fails our continuous integration tests (which include testing Windows).

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