issue_comments: 484934985
This data as json
| 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/631#issuecomment-484934985 | https://api.github.com/repos/pydata/xarray/issues/631 | 484934985 | MDEyOklzc3VlQ29tbWVudDQ4NDkzNDk4NQ== | 5635139 | 2019-04-19T15:39:54Z | 2019-04-19T15:39:54Z | MEMBER | Adding a v confusing error message which my colleague just hit (not exactly the same as this, but thought it wasn't worth a whole new issue): ``` In [10]: xr.DataArray( ...: data=1, ...: coords={ ...: 'test':[1]#, ...: }, ...: dims=['test'] ...: ) KeyError Traceback (most recent call last) <ipython-input-10-41a019d49aae> in <module> 4 'test':[1]#, 5 }, ----> 6 dims=['test'] 7 ) ~/workspace/xarray/xarray/core/dataarray.py in init(self, data, coords, dims, name, attrs, encoding, indexes, fastpath) 228 229 data = as_compatible_data(data) --> 230 coords, dims = _infer_coords_and_dims(data.shape, coords, dims) 231 variable = Variable(dims, data, attrs, encoding, fastpath=True) 232 ~/workspace/xarray/xarray/core/dataarray.py in _infer_coords_and_dims(shape, coords, dims) 76 77 for d, s in zip(v.dims, v.shape): ---> 78 if s != sizes[d]: 79 raise ValueError('conflicting sizes for dimension %r: ' 80 'length %s on the data but length %s on ' KeyError: 'test' ``` ...nothing to do with the |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
112254767 |