home / github / pull_requests

Menu
  • GraphQL API
  • Search all tables

pull_requests: 434586489

This data as json

id node_id number state locked title user body created_at updated_at closed_at merged_at merge_commit_sha assignee milestone draft head base author_association auto_merge repo url merged_by
434586489 MDExOlB1bGxSZXF1ZXN0NDM0NTg2NDg5 4155 closed 0 Implement interp for interpolating between chunks of data (dask) 1005109 In a project of mine I need to interpolate a dask-based xarray between chunk of data. When using the current official `interp` function (xarray v0.15.1), the code: ```python datax = xr.DataArray(data=da.from_array(np.arange(0, 4), chunks=2), coords={"x": np.linspace(0, 1, 4)}, dims="x") datay = xr.DataArray(data=da.from_array(np.arange(0, 4), chunks=2), coords={"y": np.linspace(0, 1, 4)}, dims="y") data = datax * datay # both of these interp call fails res = datax.interp(x=np.linspace(0, 1)) print(res.load()) res = data.interp(x=np.linspace(0, 1), y=0.5) print(res.load()) ``` fails with `NotImplementedError: Chunking along the dimension to be interpolated (0) is not yet supported.`, but succeed with this version I also want to alert that my version does not work with "advanced interpolation" (as shown in the xarray documentation) Also, my version cannot be used to make `interpolate_na` work with chunked data <!-- Feel free to remove check-list items aren't relevant to your change --> - [x] Closes #4078 - [x] Tests added - [x] Passes `isort -rc . && black . && mypy . && flake8` - [x] Fully documented, including `whats-new.rst` for all changes and `api.rst` for new API 2020-06-15T14:42:32Z 2020-09-06T12:27:15Z 2020-08-11T23:15:49Z 2020-08-11T23:15:48Z 7daad4fce3bf8ad9b9bc8e7baa104c476437e68d     0 b60cddf176d0524ed0a09c3cbb9a5acb76449e76 a198218ddabe557adbb04311b3234ec8d20419e7 CONTRIBUTOR   13221727 https://github.com/pydata/xarray/pull/4155  

Links from other tables

  • 0 rows from pull_requests_id in labels_pull_requests
Powered by Datasette · Queries took 0.812ms