home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 269478770

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/1151#issuecomment-269478770 https://api.github.com/repos/pydata/xarray/issues/1151 269478770 MDEyOklzc3VlQ29tbWVudDI2OTQ3ODc3MA== 6213168 2016-12-28T13:43:55Z 2016-12-28T13:43:55Z MEMBER

@shoyer the end goal is to replicate in concat() the same behaviour you already hav in __add__ and __mul__. So take for example a = xarray.DataArray([1, 2, 3], dims=['x'], coords={'y': 10}) b = xarray.DataArray([4, 5, 6], dims=['x']) c = xarray.DataArray([7, 8, 9], dims=['x'], coords={'y': 20}) a+b -> y is propagated to the result (unambiguous) a+c -> y is discarded (ambiguous)

I suppose I could look at how this happens in __add__ and move the logic up into broadcast() (which __add__ should already invoke)?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  193294569
Powered by Datasette · Queries took 78.069ms · About: xarray-datasette