issues: 462859457
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 462859457 | MDU6SXNzdWU0NjI4NTk0NTc= | 3068 | Multidimensional dask coordinates unexpectedly computed | 1828519 | closed | 0 | 8 | 2019-07-01T18:52:03Z | 2019-11-05T15:41:15Z | 2019-11-05T15:41:15Z | CONTRIBUTOR | MCVE Code Sample```python from dask.diagnostics import ProgressBar import xarray as xr import numpy as np import dask.array as da a = xr.DataArray(da.zeros((10, 10), chunks=2), dims=('y', 'x'), coords={'y': np.arange(10), 'x': np.arange(10), 'lons': (('y', 'x'), da.zeros((10, 10), chunks=2))}) b = xr.DataArray(da.zeros((10, 10), chunks=2), dims=('y', 'x'), coords={'y': np.arange(10), 'x': np.arange(10), 'lons': (('y', 'x'), da.zeros((10, 10), chunks=2))}) with ProgressBar(): c = a + b ``` Output:
Problem DescriptionUsing arrays with 2D dask array coordinates results in the coordinates being computed for any binary operations (anything combining two or more DataArrays). I use In my own work, when I learned that 2D dask coordinates were possible, I started adding Is this computation by design or a possible bug? Expected OutputNo output from the Output of
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/3068/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |