html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/1140#issuecomment-281075869,https://api.github.com/repos/pydata/xarray/issues/1140,281075869,MDEyOklzc3VlQ29tbWVudDI4MTA3NTg2OQ==,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}",,192122307 https://github.com/pydata/xarray/issues/1140#issuecomment-281038974,https://api.github.com/repos/pydata/xarray/issues/1140,281038974,MDEyOklzc3VlQ29tbWVudDI4MTAzODk3NA==,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}",,192122307 https://github.com/pydata/xarray/issues/1140#issuecomment-269136711,https://api.github.com/repos/pydata/xarray/issues/1140,269136711,MDEyOklzc3VlQ29tbWVudDI2OTEzNjcxMQ==,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}",,192122307