diff options
author | Jon Thielen <github@jont.cc> | 2019-12-30 18:29:02 -0600 |
---|---|---|
committer | Jon Thielen <github@jont.cc> | 2019-12-30 18:29:02 -0600 |
commit | 58cce931deaa8811bd4ef613da28847d5c591254 (patch) | |
tree | ac83f7846532e0a7bf34a836c90f1e915e66192a /CHANGES | |
parent | c99573d1167fa664b7b7c14b9e4d9a8ffa8ac6a3 (diff) | |
download | pint-58cce931deaa8811bd4ef613da28847d5c591254.tar.gz |
Update documentation to address MaskedArray breaking change
Diffstat (limited to 'CHANGES')
-rw-r--r-- | CHANGES | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -8,12 +8,21 @@ Pint Changelog Boolean value of Quantities with offsets units is ambiguous, and so, now a ValueError is raised when attempting to cast such a Quantity to boolean. (Issue #965, Thanks Jon Thielen) +- **BREAKING CHANGE**: + `__array_ufunc__` has been implemented on `pint.Unit` to permit + multiplication/division by units on the right of ufunc-reliant array types (like + Sparse) with proper respect for the type casting hierarchy. However, until [an + upstream issue with NumPy is resolved](https://github.com/numpy/numpy/issues/15200), + this breaks creation of Masked Array Quantities by multiplication on the right. + Read Pint's [NumPy support + documentation](https://pint.readthedocs.io/en/latest/numpy.html) for more details. + (Issues #963 and #966, Thanks Jon Thielen) - Documentation on Pint's array type compatibility has been added to the NumPy support page, including a graph of the duck array type casting hierarchy as understood by Pint for N-dimensional arrays. (Issue #963, Thanks Jon Thielen, Stephan Hoyer, and Guido Imperiale) -- Improved compatibility for downcast duck array types like Sparse and Masked Arrays. A - collection of basic tests has been added. +- Improved compatibility for downcast duck array types like Sparse.COO. A collection + of basic tests has been added. (Issue #963, Thanks Jon Thielen) - Improvements to wraps and check: - fail upon decoration (not execution) by checking wrapped function signature against |