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/pull/3130#issuecomment-511250197,https://api.github.com/repos/pydata/xarray/issues/3130,511250197,MDEyOklzc3VlQ29tbWVudDUxMTI1MDE5Nw==,2380665,2019-07-15T01:00:09Z,2019-07-15T01:00:39Z,CONTRIBUTOR,"Made changes suggested by @dcherian. This resolves the detected bug in the test. If CI passes, this should be ready to merge. Removed the temporary method `.broadcast_like_naive()` and the test using it.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,467897998 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 https://github.com/pydata/xarray/pull/3127#issuecomment-511232692,https://api.github.com/repos/pydata/xarray/issues/3127,511232692,MDEyOklzc3VlQ29tbWVudDUxMTIzMjY5Mg==,2380665,2019-07-14T20:25:27Z,2019-07-14T20:25:27Z,CONTRIBUTOR,Great. Will do.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,467862319 https://github.com/pydata/xarray/pull/3127#issuecomment-511232137,https://api.github.com/repos/pydata/xarray/issues/3127,511232137,MDEyOklzc3VlQ29tbWVudDUxMTIzMjEzNw==,2380665,2019-07-14T20:17:22Z,2019-07-14T20:17:22Z,CONTRIBUTOR,"I realized the overlap only after I made the PR. Their implementation of factoring out the shared code is better than my simple wrapper. But my documention and tests are better. What's the best way to merge the best? I'm happy to do it, but not sure if it should be a new branch and PR, or a revision of one of the existing ones.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,467862319 https://github.com/pydata/xarray/pull/3127#issuecomment-511219382,https://api.github.com/repos/pydata/xarray/issues/3127,511219382,MDEyOklzc3VlQ29tbWVudDUxMTIxOTM4Mg==,2380665,2019-07-14T17:08:15Z,2019-07-14T17:08:15Z,CONTRIBUTOR,"This was branched off of https://github.com/pydata/xarray/pull/3127 by mistake. If both are merged, no issue.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,467862319