issues: 571743567
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
571743567 | MDExOlB1bGxSZXF1ZXN0MzgwNTc1NTYw | 3801 | Coarsen keep attrs 3376 | 29958771 | closed | 0 | 19 | 2020-02-27T00:29:13Z | 2020-03-06T16:33:11Z | 2020-03-02T23:02:56Z | CONTRIBUTOR | 0 | pydata/xarray/pulls/3801 |
I also noticed missing attributes when attempting certain operations, so I have created this pull request to attempt a fix. I modified code in I added two new tests that adapt the bug reported by @jejjohnson. I believe they should pass when this is fixed. One uses xarray/tests/test_dataset.py::TestDataset::test_coarsen_keep_attrs - fails because my attempted fix does not retain the attributes. xarray/tests/test_variable.py::TestVariable::test_coarsen_keep_attrs - also fails, but unexpectedly this seems to be because the attributes are not removed by default, or even when explicitly setting the global option to False. |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3801/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | pull |