issues: 559645981
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
559645981 | MDU6SXNzdWU1NTk2NDU5ODE= | 3746 | dataarray arithmetics restore removed coordinates in xarray 0.15 | 167802 | closed | 0 | 5 | 2020-02-04T11:06:40Z | 2020-03-21T19:03:51Z | 2020-03-21T19:03:51Z | CONTRIBUTOR | MCVE Code Sample```python import xarray as xr import numpy as np arr2 = xr.DataArray(np.ones((2, 2)), dims=['y', 'x']) arr1 = xr.DataArray(np.ones((2, 2)), dims=['y', 'x'], coords={'y': [0, 1], 'x': [0, 1]}) del arr1.coords['y'] del arr1.coords['x'] shows arr1 without coordinatesarr1 shows coordinates in xarray 0.15arr1 * arr2 ``` Expected Output
Problem DescriptionIn xarray 0.15, the coordinates are restored when doing the multiplication:
Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3746/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |