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/2263#issuecomment-403110781,https://api.github.com/repos/pydata/xarray/issues/2263,403110781,MDEyOklzc3VlQ29tbWVudDQwMzExMDc4MQ==,1200058,2018-07-06T18:19:59Z,2018-07-06T18:19:59Z,NONE,"Thank you very much for trying to help :)

It's no big problem at the moment, as it only comes up when I'm debugging.
If this should really get a big problem I'll try to publish a test script here.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,337619718
https://github.com/pydata/xarray/issues/2263#issuecomment-402700723,https://api.github.com/repos/pydata/xarray/issues/2263,402700723,MDEyOklzc3VlQ29tbWVudDQwMjcwMDcyMw==,1200058,2018-07-05T12:06:21Z,2018-07-05T12:08:07Z,NONE,"```
>>> X.variable._data
array([[  3478.,   9079.,  51928., ...,  34312.,  11081.,  79157.],
       [  6976.,  14495.,  64495., ...,  30606.,  12816., 157080.],
       [  4260.,  10066.,  47271., ...,  47332.,  14947., 118562.],
       ...,
       [ 12976.,   9201.,  31295., ...,  22093.,   8846.,  96991.],
       [  7033.,   8238.,  22521., ...,  20476.,   9051.,  67057.],
       [ 13566.,  10308.,  28916., ...,  15529.,   7426.,  84852.]],
      dtype=float32)
>>> type(X.variable._data)
<class 'numpy.ndarray'>
>>> idx
array([ 705,  753,  342,  398,  688,  661,  630,  624,  668,  669,  631,
        430,   54,  828,  478,  912,  772,   78,  627,  164,  557,  393,
       1019,  559,  440,  290,  226,  299,  870,  718,  603,  947,  800,
        483,   66,  453,  485,  919,  671,  213,  877,  126,  684,  600,
        146, 1008,  496, 1028,  196,   51,  749,  971,  779,  232,  918,
        608,   72,  707,   58, 1014, 1043,  370,  185,  818,  378,  315,
[... i deleted here ...]
         81,  145, 1053,  839,  466,  901, 1017,   48,  521,  162,  773,
        170,  846, 1091, 1361, 1257, 1249, 1163, 1166,  634,  907, 1349,
        432,  304, 1417, 1343,  424,  520, 1206, 1370,   23, 1477, 1047,
       1407, 1314,   69, 1197, 1443,  261, 1479,  539,  675,   47,  619,
        455, 1224,  513,  667,  894], dtype=int32)
>>> type(idx)
<class 'numpy.ndarray'>

```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,337619718
https://github.com/pydata/xarray/issues/2263#issuecomment-402445256,https://api.github.com/repos/pydata/xarray/issues/2263,402445256,MDEyOklzc3VlQ29tbWVudDQwMjQ0NTI1Ng==,1200058,2018-07-04T11:01:02Z,2018-07-04T11:01:02Z,NONE,"There is no X._data, but X.values is a simple ndarray.

I pickled X and idx:
[unit_test.zip](https://github.com/pydata/xarray/files/2162950/unit_test.zip)","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,337619718
https://github.com/pydata/xarray/issues/2263#issuecomment-402099108,https://api.github.com/repos/pydata/xarray/issues/2263,402099108,MDEyOklzc3VlQ29tbWVudDQwMjA5OTEwOA==,1200058,2018-07-03T10:30:45Z,2018-07-03T10:31:45Z,NONE,"I tried to, but I'm not sure whats the root cause of this problem.
This problem occures as part of my Tensorflow input pipeline (it's called by a py_func) and it's hard to reproduce without Tensorflow.

Maybe this helps?
![grafik](https://user-images.githubusercontent.com/1200058/42213839-2dde0f62-7eba-11e8-837f-fbe0a39f2ee8.png)

It might also be possible that this is some problem with python itself or some multithreading issue.
I just found this issue which exactly describes my problem:
https://github.com/ContinuumIO/anaconda-issues/issues/8737

There's also the hint that this problem only occurs in debug mode.
I'm always running my unit tests in debug mode, that's why I did not realize this.

Having that said, it's maybe not worth to change this in xarray and wait for a python solution to this.
However, since two brackets would solve this issue, it might not be too invasive to simply fix this one line :)","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,337619718