pull_requests: 671669654
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
671669654 | MDExOlB1bGxSZXF1ZXN0NjcxNjY5NjU0 | 5476 | closed | 0 | Add coarsen.construct | 2448579 | <!-- Feel free to remove check-list items aren't relevant to your change --> - [x] Closes #5454 - [x] Tests added - [x] Passes `pre-commit run --all-files` - [x] User visible changes (including notable bug fixes) are documented in `whats-new.rst` - [x] New functions/methods are listed in `api.rst` Builds on #5474 Here's an example ``` python import numpy as np import xarray as xr ds = xr.Dataset( { "vart": ("time", np.arange(48)), "varx": ("x", np.arange(10)), "vartx": (("x", "time"), np.arange(480).reshape(10, 48)), "vary": ("y", np.arange(12)), }, coords={"time": np.arange(48), "y": np.arange(12)}, ) ds.coarsen(time=12, x=5, boundary="trim").construct( {"time": ("year", "month"), "x": ("x", "x_reshaped")} ) ``` What do people think of this syntax: `{"time": ("year", "month"), "x": ("x", "x_reshaped")`? Should we instead do `{"time": "month", "x": "x_reshaped"}` and have the user later rename the `x` or `time` dimension if they want? | 2021-06-16T16:42:15Z | 2021-07-23T20:26:38Z | 2021-06-24T16:55:25Z | 2021-06-24T16:55:25Z | 8a338eebd7d8a91e9e08bb489344075b8edb4eb4 | 0 | 56d8c368591ed9a177f934095b284aa1a5d6ac9f | eea76733770be03e78a0834803291659136bca31 | MEMBER | 13221727 | https://github.com/pydata/xarray/pull/5476 |
Links from other tables
- 1 row from pull_requests_id in labels_pull_requests