home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 85662203

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
85662203 MDU6SXNzdWU4NTY2MjIwMw== 425 xray.concat fails in an edge case involving identical coordinate variables 1217238 closed 0   1143506 0 2015-06-06T00:22:45Z 2015-06-07T06:03:16Z 2015-06-07T06:03:16Z MEMBER      

python ds1 = xray.Dataset({'foo': 1.5}, {'x': 0, 'y': 1}) ds2 = xray.Dataset({'foo': 2.5}, {'x': 1, 'y': 1}) xray.concat([ds1, ds2], 'y')

``` ValueError Traceback (most recent call last) <ipython-input-235-69cea5440248> in <module>() 1 ds1 = xray.Dataset({'foo': 1.5}, {'x': 0, 'y': 1}) 2 ds2 = xray.Dataset({'foo': 2.5}, {'x': 1, 'y': 1}) ----> 3 xray.concat([ds1, ds2], 'y')

/Users/shoyer/dev/xray/xray/core/alignment.pyc in concat(objs, dim, indexers, mode, concat_over, compat) 276 raise ValueError('must supply at least one object to concatenate') 277 cls = type(first_obj) --> 278 return cls._concat(objs, dim, indexers, mode, concat_over, compat) 279 280

/Users/shoyer/dev/xray/xray/core/dataset.pyc in _concat(cls, datasets, dim, indexers, mode, concat_over, compat) 1732 for k in concat_over: 1733 vars = ensure_common_dims([ds._variables[k] for ds in datasets]) -> 1734 concatenated[k] = Variable.concat(vars, dim, indexers) 1735 1736 concatenated._coord_names.update(datasets[0].coords)

/Users/shoyer/dev/xray/xray/core/dataset.pyc in setitem(self, key, value) 637 raise NotImplementedError('cannot yet use a dictionary as a key ' 638 'to set Dataset values') --> 639 self.update({key: value}) 640 641 def delitem(self, key):

/Users/shoyer/dev/xray/xray/core/dataset.pyc in update(self, other, inplace) 1224 """ 1225 return self.merge( -> 1226 other, inplace=inplace, overwrite_vars=list(other), join='left') 1227 1228 def merge(self, other, inplace=False, overwrite_vars=set(),

/Users/shoyer/dev/xray/xray/core/dataset.pyc in merge(self, other, inplace, overwrite_vars, compat, join) 1291 raise ValueError('cannot merge: the following variables are ' 1292 'coordinates on one dataset but not the other: %s' -> 1293 % list(ambiguous_coords)) 1294 1295 obj = self if inplace else self.copy()

ValueError: cannot merge: the following variables are coordinates on one dataset but not the other: ['y'] ```

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/425/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 0 rows from issue in issue_comments
Powered by Datasette · Queries took 0.646ms · About: xarray-datasette