pull_requests: 352136111
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
352136111 | MDExOlB1bGxSZXF1ZXN0MzUyMTM2MTEx | 3611 | closed | 0 | Pint support for top-level functions | 14808389 | This PR tries to get the pint integration tests (see #3594) to pass. To make sure this does not become a giant PR, it is limited to the top-level functions and the work on the tests for `DataArray` and `Dataset` will be done in other PRs. I added pint master to the `upstream-dev` CI since that way CI finally helps finding bugs. Should I have edited `py36-min-nep18` instead? - [x] Passes `black . && mypy . && flake8` - [x] Fully documented, including `whats-new.rst` for all changes and `api.rst` for new API Also, I finally ran into a situation where I have to use `assert_allclose` instead of `assert_equal_with_units`. However, `assert_allclose` does not check for identical units, I think? Would it make sense to copy the code of `assert_allclose` and add the strict unit checking or would it be better to just use `assert_allclose` and something like `assert extract_units(expected) == extract_units(actual)`? Failing tests list from #3594: - `align`: ~needs more investigation~ ~partially blocked by `where`, `IndexVariable` and a bug in `assert_equal_with_units` and / or the tests, also a behaviour decision on align~ works (but units in `IndexVariable` still fail) - `combine_by_coords`: ~needs more investigation~ ~partially blocked by `IndexVariable` and a test bug (due to #3483)~ works (but units in `IndexVariable` still fail) - `combine_nested`: ~needs more investigation~ ~blocked by `reindex`~ works (but units in `IndexVariable` still fail) - `concat`: ~needs more investigation~ works (but units in `IndexVariable` still fail) - `merge`: ~needs more investigation~ works (but units in `IndexVariable` still fail) - `full_like`: ~`pint` currently does not implement `copyto`~ blocked by hgrecco/pint#882 - `where`: ~needs more investigation~ ~unit is stripped because `pint` does not implement `astype` and test bug in `test_where_dataset`~ works - `dot`: ~`pint` currently does not implement `einsum`~ works | 2019-12-11T22:04:13Z | 2020-03-09T11:35:27Z | 2020-03-09T07:40:46Z | 2020-03-09T07:40:46Z | 9f97c4384f6456a5582f2bf7277c90be110fce92 | 0 | 2eff81db0996ebcce546e8df08d619858e1c580f | fd08842e81576f5ea6b826e31bc2031bcca79de2 | MEMBER | 13221727 | https://github.com/pydata/xarray/pull/3611 |
Links from other tables
- 0 rows from pull_requests_id in labels_pull_requests