issues: 601224688
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
601224688 | MDU6SXNzdWU2MDEyMjQ2ODg= | 3977 | xr.full_like (often) fails when other is chunked and fill_value is non-scalar | 13662783 | closed | 0 | 1 | 2020-04-16T16:23:59Z | 2020-04-24T07:15:44Z | 2020-04-24T07:15:44Z | CONTRIBUTOR | I've been running into some issues when using Now, I just checked, MCVE Code Sample
This results in an error:
Expected OutputExpected is a DataArray with the dimensions and coords of Problem DescriptionThe issue lies here: https://github.com/pydata/xarray/blob/2c77eb531b6689f9f1d2adbde0d8bf852f1f7362/xarray/core/common.py#L1420-L1436 Calling As one would expect, if I set It does fail on a similarly chunked dask array (since it's applying it for every chunk):
The most obvious solution would be to force it down the However, in all cases, they still broadcast automatically... ```python a = np.full((2, 2), [1, 2]
So kind of undefined behavior of a blocked VersionsOutput of `xr.show_versions()`INSTALLED VERSIONS ------------------ commit: None python: 3.7.6 | packaged by conda-forge | (default, Jan 7 2020, 21:48:41) [MSC v.1916 64 bit (AMD64)] python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 158 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: en LOCALE: None.None libhdf5: 1.10.5 libnetcdf: 4.7.3 xarray: 0.15.1 pandas: 0.25.3 numpy: 1.17.5 scipy: 1.3.1 netCDF4: 1.5.3 pydap: None h5netcdf: None h5py: 2.10.0 Nio: None zarr: 2.4.0 cftime: 1.0.4.2 nc_time_axis: None PseudoNetCDF: None rasterio: 1.1.2 cfgrib: None iris: None bottleneck: 1.3.2 dask: 2.9.2 distributed: 2.10.0 matplotlib: 3.1.2 cartopy: None seaborn: 0.10.0 numbagg: None setuptools: 46.1.3.post20200325 pip: 20.0.2 conda: None pytest: 5.3.4 IPython: 7.13.0 sphinx: 2.3.1 |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3977/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |