issues: 549679475
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
549679475 | MDU6SXNzdWU1NDk2Nzk0NzU= | 3694 | xr.dot requires equal indexes (join="exact") | 10194086 | closed | 0 | 5 | 2020-01-14T16:28:15Z | 2020-01-20T12:09:27Z | 2020-01-20T12:09:27Z | MEMBER | MCVE Code Sample```python import xarray as xr import numpy as np d1 = xr.DataArray(np.arange(4), dims=["a"], coords=dict(a=[0, 1, 2, 3])) d2 = xr.DataArray(np.arange(4), dims=["a"], coords=dict(a=[0, 1, 2, 3])) note: different coordsd3 = xr.DataArray(np.arange(4), dims=["a"], coords=dict(a=[1, 2, 3, 4])) (d1 * d2).sum() # -> array(14) xr.dot(d1, d2) # -> array(14) (d2 * d3).sum() # -> array(8) xr.dot(d2, d3) # -> ValueError ``` Expected Output
Problem DescriptionThe last statement results in an
This is a problem for #2922 (weighted operations) - I think it is fine for the weights and data to not align. Fixing this may be as easy as specifying @fujiisoup Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3694/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |