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/3129#issuecomment-511244796,https://api.github.com/repos/pydata/xarray/issues/3129,511244796,MDEyOklzc3VlQ29tbWVudDUxMTI0NDc5Ng==,2380665,2019-07-14T23:40:14Z,2019-07-15T01:10:09Z,CONTRIBUTOR,"With the following method instead, the identical test succeeds (modulo using the temporary method for tests, of course):
```python
def broadcast_like_naive(self,
other: Union['DataArray', Dataset],
exclude=None) -> 'DataArray':
return broadcast(other, self)[1]
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,467897057
https://github.com/pydata/xarray/issues/3129#issuecomment-511244685,https://api.github.com/repos/pydata/xarray/issues/3129,511244685,MDEyOklzc3VlQ29tbWVudDUxMTI0NDY4NQ==,2380665,2019-07-14T23:38:14Z,2019-07-14T23:38:14Z,CONTRIBUTOR,"In https://github.com/DavidMertz/xarray/tree/feature/2885-broadcast_like-merge-branch I have created a temporary method `.broadcast_like_naive()` and have created a test against the naive implementation that is identical to the test against the refactored code.
We actually get the failure in the call to `.broadcast_like()` itself, i.e. not in the assertion about the result:
```python
___________________________________________ TestDataArray.test_broadcast_like ____________________________________________
self =
def test_broadcast_like(self):
arr1 = DataArray(np.ones((2, 3)), dims=['x', 'y'],
coords={'x': ['a', 'b'], 'y': ['a', 'b', 'c']})
arr2 = DataArray(np.ones((3, 2)), dims=['x', 'y'],
coords={'x': ['a', 'b', 'c'], 'y': ['a', 'b']})
orig1, orig2 = broadcast(arr1, arr2)
> new1 = arr2.broadcast_like(arr1)
xarray/tests/test_dataarray.py:1276:
[...]
E ValueError: conflicting sizes for dimension 'y': length 2 on the data but length 3 on coordinate 'y'
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,467897057