aboutsummaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pint_0.13.bb
AgeCommit message (Collapse)Author
2020-06-25python3-pint: Upgrade 0.12 -> 0.13Leon Anavi
Upgrade to release 0.13: - Reinstated support for pickle protocol 0 and 1, which is required by pytables - Fixed bug with multiplication of Quantity by dict - Bare zeros and NaNs (not wrapped by Quantity) are now gracefully accepted by all numpy operations; e.g. np.stack ([Quantity([1, 2], "m"), [0, np.nan]) is now valid, whereas np.stack([Quantity([1, 2], "m"), [3, 4]) will continue raising DimensionalityError. - NaN is now treated the same as zero in addition, subtraction, equality, and disequality - Fixed issue where quantities with a very large magnitude would throw an IndexError when using to_compact() - Fixed crash when a Unit with prefix is declared for the first time while a Context containing unit redefinitions is active - New implementation of 'Lx' String Format Type Option The old implementation treated 'Lx' as 'S' as produced by 'uncertainties' package, but that is not fully compatible with SIunitx. The new code protects SIunitx by fixing what unceratinties produces. - Added link to budding `pint-xarray` interface library to the docs, next to the link to pint-pandas. - Removed outdated `_dir` attribute of `UnitsRegistry`, and added `__iter__` method so that now `list(ureg)` returns a list of all units in registry. - Replace pkg_resources.version to importlib.metadata.version. - Fix typo in docs for wraps example with optional arguments. - Add momentum as a dimension - Fixed a bug where unit exponents were only partially superscripted in HTML format - Multiple contexts containing the same redefinition can now be stacked - Fixed crash when some specific combinations of contexts were enabled - Added support for checking prefixed units using `in` keyword - Updated many examples in the documentation to reflect Pint's current behavior Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>