Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make xscen.utils.change_units() update unit name on equal units (#373)
Make xscen.utils.change_units() update unit name on equal units <!-- Please ensure the PR fulfills the following requirements! --> <!-- If this is your first PR, make sure to add your details to the AUTHORS.rst! --> ### Pull Request Checklist: - [ ] This PR addresses an already opened issue (for bug fixes / features) - This PR fixes #xyz - [ ] (If applicable) Documentation has been added / updated (for bug fixes / features). - [ ] (If applicable) Tests have been added. - [ ] This PR does not seem to break the templates. - [x] CHANGES.rst has been updated (with summary of main changes). - [x] Link to issue (:issue:`number`) and pull request (:pull:`number`) has been added. ### What kind of change does this PR introduce? During unit conversion ``xscen.utils.change_units`` will adopt the name from the `variables_and_units` dictionary if the physical units are equal but their names are not (ex. degC <-> ˚C) Useful for harmonizing unit names when processing datasets of varying origin. ### Does this PR introduce a breaking change? No. ### Other information: There is no testing for xscen.utils (yet). Right?
- Loading branch information