issue_comments: 778329536
This data as json
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/4898#issuecomment-778329536 | https://api.github.com/repos/pydata/xarray/issues/4898 | 778329536 | MDEyOklzc3VlQ29tbWVudDc3ODMyOTUzNg== | 367900 | 2021-02-12T17:23:51Z | 2021-02-12T17:23:51Z | CONTRIBUTOR | A quick check with the debugger and it is the I think I've found another problem with ```python import numpy as np import xarray as xr def worker(da): if da.shape == (0, 0): return da
da = xr.DataArray( np.random.normal(size=(20, 500)), dims=("x", "y"), coords=(np.arange(20), np.arange(500)), ) da = da.chunk(dict(x=5)) lazy = da.map_blocks(worker) result_allaxes = lazy.sum(skipna=True, min_count=5) result_allaxes.load() ``` I would expect The problem seems to be the dtype check: The test returns True for float64 and so the block isn't run. Another MCVE: ```python import numpy as np from xarray.core import dtypes print(dtypes.NAT_TYPES) print(np.dtype("float64") in dtypes.NAT_TYPES) ``` Output:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
807089005 |