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/1374#issuecomment-298803481,https://api.github.com/repos/pydata/xarray/issues/1374,298803481,MDEyOklzc3VlQ29tbWVudDI5ODgwMzQ4MQ==,1217238,2017-05-03T01:19:36Z,2017-05-03T01:19:36Z,MEMBER,"There's not really an elegant solution here, but I'll figure something out.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,221855729
https://github.com/pydata/xarray/issues/1374#issuecomment-298802941,https://api.github.com/repos/pydata/xarray/issues/1374,298802941,MDEyOklzc3VlQ29tbWVudDI5ODgwMjk0MQ==,5572303,2017-05-03T01:14:12Z,2017-05-03T01:14:12Z,CONTRIBUTOR,This has impacted our workflow as well. Please let us know if we can help.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,221855729
https://github.com/pydata/xarray/issues/1374#issuecomment-295578094,https://api.github.com/repos/pydata/xarray/issues/1374,295578094,MDEyOklzc3VlQ29tbWVudDI5NTU3ODA5NA==,1217238,2017-04-20T04:37:18Z,2017-04-20T04:37:38Z,MEMBER,"The issue appears to be in our internal CopyOnWriteArray and MemoryCachedArray classes. When the wrapped array is a scalar string, indexing with an empty tuple doesn't work properly:
```
In [14]: from xarray.core.indexing import CopyOnWriteArray, MemoryCachedArray
In [15]: x = CopyOnWriteArray(np.array([1, 2, 3]))
In [16]: x[0]
Out[16]: CopyOnWriteArray(array=1)
In [17]: x[0][()]
Out[17]: CopyOnWriteArray(array=1)
In [18]: x = CopyOnWriteArray(np.array(['foo', 'bar']))
In [19]: x[0]
Out[19]: CopyOnWriteArray(array='foo')
In [20]: x[0][()]
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
in ()
----> 1 x[0][()]
/Users/shoyer/dev/xarray/xarray/core/indexing.py in __getitem__(self, key)
401
402 def __getitem__(self, key):
--> 403 return type(self)(self.array[key])
404
405 def __setitem__(self, key, value):
TypeError: string indices must be integers
```
In some sense, the source issue is that `x[()]` works for numpy scalar numbers, but not strings.
I will see if I can come up with an elegant fix...","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,221855729
https://github.com/pydata/xarray/issues/1374#issuecomment-295576554,https://api.github.com/repos/pydata/xarray/issues/1374,295576554,MDEyOklzc3VlQ29tbWVudDI5NTU3NjU1NA==,1217238,2017-04-20T04:25:33Z,2017-04-20T04:25:33Z,MEMBER,Marking this as a bug. I can reproduce this locally on master.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,221855729
https://github.com/pydata/xarray/issues/1374#issuecomment-294520876,https://api.github.com/repos/pydata/xarray/issues/1374,294520876,MDEyOklzc3VlQ29tbWVudDI5NDUyMDg3Ng==,6420873,2017-04-17T16:25:12Z,2017-04-17T16:25:12Z,NONE,"It should be the default engine netCDF4.
Here I provided a file: https://github.com/Yefee/bugs-fix/blob/master/lgm2co2.nc","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,221855729
https://github.com/pydata/xarray/issues/1374#issuecomment-294251213,https://api.github.com/repos/pydata/xarray/issues/1374,294251213,MDEyOklzc3VlQ29tbWVudDI5NDI1MTIxMw==,1217238,2017-04-14T22:49:49Z,2017-04-14T22:49:49Z,MEMBER,Are you using netCDF4 or scipy to read this data? Can you post a small file that illustrates the issue?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,221855729