hgrecco/pint (pint)
### [`v0.24`](https://togithub.com/hgrecco/pint/blob/HEAD/CHANGES#024-2024-06-07)
[Compare Source](https://togithub.com/hgrecco/pint/compare/0.23...0.24)
- Fix detection of invalid conversion between offset and delta units. (PR [#1905](https://togithub.com/hgrecco/pint/issues/1905))
- Added dBW, decibel Watts, which is used in RF high power applications
- NumPy 2.0 support
(PR [#1985](https://togithub.com/hgrecco/pint/issues/1985), [#1971](https://togithub.com/hgrecco/pint/issues/1971))
- Implement numpy roll (Related to issue [#981](https://togithub.com/hgrecco/pint/issues/981))
- Implement numpy correlate
(PR [#1990](https://togithub.com/hgrecco/pint/issues/1990))
- Add `dim_sort` function to \_formatter_helpers.
- Add `dim_order` and `default_sort_func` properties to FullFormatter.
(PR [#1926](https://togithub.com/hgrecco/pint/issues/1926), fixes Issue [#1841](https://togithub.com/hgrecco/pint/issues/1841))
- Documented packages using pint.
(PR [#1960](https://togithub.com/hgrecco/pint/issues/1960))
- Fixed bug causing operations between arrays of quantity scalars and quantity holding
array resulting in incorrect units.
(PR [#1677](https://togithub.com/hgrecco/pint/issues/1677))
- Fix LaTeX siuntix formatting when using non_int_type=decimal.Decimal.
(PR [#1977](https://togithub.com/hgrecco/pint/issues/1977))
- Added refractive index units.
(PR [#1816](https://togithub.com/hgrecco/pint/issues/1816))
- Fix converting to offset units of higher dimension e.g. gauge pressure
(PR [#1949](https://togithub.com/hgrecco/pint/issues/1949))
- Fix unhandled TypeError when auto_reduce_dimensions=True and non_int_type=Decimal
(PR [#1853](https://togithub.com/hgrecco/pint/issues/1853))
- Improved error message in `get_dimensionality()` when non existent units are passed.
(PR [#1874](https://togithub.com/hgrecco/pint/issues/1874), Issue [#1716](https://togithub.com/hgrecco/pint/issues/1716))
### [`v0.23`](https://togithub.com/hgrecco/pint/blob/HEAD/CHANGES#023-2023-12-08)
[Compare Source](https://togithub.com/hgrecco/pint/compare/0.22...0.23)
- Add \_get_conversion_factor to registry with cache.
- Homogenize input and ouput of internal regitry functions to
facility typing, subclassing and wrapping.
(\_yield_unit_triplets, )
- Generated downstream_status page to track the
state of downstream projects.
- Improve typing annotation.
- Updated to flexparser 0.2.
- Faster wraps
(PR [#1862](https://togithub.com/hgrecco/pint/issues/1862))
- Add codspeed github action.
- Move benchmarks to pytest-benchmarks.
- Support pytest on python 3.12 wrt Fraction formatting change
([#1818](https://togithub.com/hgrecco/pint/issues/1818))
- Fixed Transformation type protocol.
(PR [#1805](https://togithub.com/hgrecco/pint/issues/1805), PR [#1832](https://togithub.com/hgrecco/pint/issues/1832))
- Documented to_preferred and created added an autoautoconvert_to_preferred registry option.
(PR [#1803](https://togithub.com/hgrecco/pint/issues/1803))
- Enable Pint to parse uncertainty numbers.
(See [#1611](https://togithub.com/hgrecco/pint/issues/1611), [#1614](https://togithub.com/hgrecco/pint/issues/1614))
- Optimize matplotlib unit conversion for Quantity arrays
(PR [#1819](https://togithub.com/hgrecco/pint/issues/1819))
- Add numpy.linalg.norm implementation.
(PR [#1251](https://togithub.com/hgrecco/pint/issues/1251))
### [`v0.22`](https://togithub.com/hgrecco/pint/blob/HEAD/CHANGES#022-2023-05-25)
[Compare Source](https://togithub.com/hgrecco/pint/compare/0.21.1...0.22)
- Drop Python 3.8 compatability following NEP-29.
- Drop NumPy < 1.21 following NEP-29.
- Improved typing experience.
- Migrated fully to pyproject.toml.
- Migrated to ruff.
- In order to make static typing possible as required by mypy
and similar tools, the way to subclass the registry has been
changed.
- Allow non-quantity atol parameters for isclose and allclose.
(PR [#1783](https://togithub.com/hgrecco/pint/issues/1783))
### [`v0.21.1`](https://togithub.com/hgrecco/pint/compare/0.21...0.21.1)
[Compare Source](https://togithub.com/hgrecco/pint/compare/0.21...0.21.1)
### [`v0.21`](https://togithub.com/hgrecco/pint/blob/HEAD/CHANGES#021-2023-05-01)
[Compare Source](https://togithub.com/hgrecco/pint/compare/0.20.1...0.21)
- Add PEP621/631 support.
(Issue [#1647](https://togithub.com/hgrecco/pint/issues/1647))
- Exposed matplotlib unit formatter (PR [#1703](https://togithub.com/hgrecco/pint/issues/1703))
- Fix error when when re-registering a formatter.
(PR [#1629](https://togithub.com/hgrecco/pint/issues/1629))
- Add new SI prefixes: ronna-, ronto-, quetta-, quecto-.
(PR [#1652](https://togithub.com/hgrecco/pint/issues/1652))
- Fix unit check with `atol` using `np.allclose` & `np.isclose`.
(Issue [#1658](https://togithub.com/hgrecco/pint/issues/1658))
- Implementation for numpy.positive added for Quantity.
(PR [#1663](https://togithub.com/hgrecco/pint/issues/1663))
- Changed frequency to angular frequency in the docs.
(PR [#1668](https://togithub.com/hgrecco/pint/issues/1668))
- Remove deprecated `alen` numpy function
(PR [#1678](https://togithub.com/hgrecco/pint/issues/1678))
- Updated URLs for log and offset unit errors.
(PR [#1727](https://togithub.com/hgrecco/pint/issues/1727))
- Patched TYPE_CHECKING import regression.
(PR [#1686](https://togithub.com/hgrecco/pint/issues/1686))
- Parse '°' along with previous text, rather than adding a space,
allowing, eg 'Δ°C' as a unit.
(PR [#1729](https://togithub.com/hgrecco/pint/issues/1729))
- Improved escaping of special characters for LaTeX format
(PR [#1712](https://togithub.com/hgrecco/pint/issues/1712))
- Avoid addition of spurious trailing zeros when converting units and non-int-type is
Decimal (PR [#1625](https://togithub.com/hgrecco/pint/issues/1625)).
- Implementation for numpy.delete added for Quantity.
(PR [#1669](https://togithub.com/hgrecco/pint/issues/1669))
- Fixed Quantity type returned from `__dask_postcompute__`.
(PR [#1722](https://togithub.com/hgrecco/pint/issues/1722))
- Added Townsend unit
(PR [#1738](https://togithub.com/hgrecco/pint/issues/1738))
- Fix get_compatible_units() in dynamically added units.
(Issue [#1725](https://togithub.com/hgrecco/pint/issues/1725))
- Fix pint-convert script
(Issue [#1646](https://togithub.com/hgrecco/pint/issues/1646))
- Honor non_int_type when dividing.
(Issue [#1505](https://togithub.com/hgrecco/pint/issues/1505))
- Fix `trapz`, `dot`, and `cross` to work properly with non-multiplicative units
(Issue [#1593](https://togithub.com/hgrecco/pint/issues/1593))
##### Breaking Changes
- Support percent and ppm units. Support the `%` symbol.
(Issue [#1277](https://togithub.com/hgrecco/pint/issues/1277))
- Fix error when parsing subtraction operator followed by white space.
(PR [#1701](https://togithub.com/hgrecco/pint/issues/1701))
- Removed Td as an alias for denier (within the Textile group)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
0.20.1
->0.24
Release Notes
hgrecco/pint (pint)
### [`v0.24`](https://togithub.com/hgrecco/pint/blob/HEAD/CHANGES#024-2024-06-07) [Compare Source](https://togithub.com/hgrecco/pint/compare/0.23...0.24) - Fix detection of invalid conversion between offset and delta units. (PR [#1905](https://togithub.com/hgrecco/pint/issues/1905)) - Added dBW, decibel Watts, which is used in RF high power applications - NumPy 2.0 support (PR [#1985](https://togithub.com/hgrecco/pint/issues/1985), [#1971](https://togithub.com/hgrecco/pint/issues/1971)) - Implement numpy roll (Related to issue [#981](https://togithub.com/hgrecco/pint/issues/981)) - Implement numpy correlate (PR [#1990](https://togithub.com/hgrecco/pint/issues/1990)) - Add `dim_sort` function to \_formatter_helpers. - Add `dim_order` and `default_sort_func` properties to FullFormatter. (PR [#1926](https://togithub.com/hgrecco/pint/issues/1926), fixes Issue [#1841](https://togithub.com/hgrecco/pint/issues/1841)) - Documented packages using pint. (PR [#1960](https://togithub.com/hgrecco/pint/issues/1960)) - Fixed bug causing operations between arrays of quantity scalars and quantity holding array resulting in incorrect units. (PR [#1677](https://togithub.com/hgrecco/pint/issues/1677)) - Fix LaTeX siuntix formatting when using non_int_type=decimal.Decimal. (PR [#1977](https://togithub.com/hgrecco/pint/issues/1977)) - Added refractive index units. (PR [#1816](https://togithub.com/hgrecco/pint/issues/1816)) - Fix converting to offset units of higher dimension e.g. gauge pressure (PR [#1949](https://togithub.com/hgrecco/pint/issues/1949)) - Fix unhandled TypeError when auto_reduce_dimensions=True and non_int_type=Decimal (PR [#1853](https://togithub.com/hgrecco/pint/issues/1853)) - Improved error message in `get_dimensionality()` when non existent units are passed. (PR [#1874](https://togithub.com/hgrecco/pint/issues/1874), Issue [#1716](https://togithub.com/hgrecco/pint/issues/1716)) ### [`v0.23`](https://togithub.com/hgrecco/pint/blob/HEAD/CHANGES#023-2023-12-08) [Compare Source](https://togithub.com/hgrecco/pint/compare/0.22...0.23) - Add \_get_conversion_factor to registry with cache. - Homogenize input and ouput of internal regitry functions to facility typing, subclassing and wrapping. (\_yield_unit_triplets, ) - Generated downstream_status page to track the state of downstream projects. - Improve typing annotation. - Updated to flexparser 0.2. - Faster wraps (PR [#1862](https://togithub.com/hgrecco/pint/issues/1862)) - Add codspeed github action. - Move benchmarks to pytest-benchmarks. - Support pytest on python 3.12 wrt Fraction formatting change ([#1818](https://togithub.com/hgrecco/pint/issues/1818)) - Fixed Transformation type protocol. (PR [#1805](https://togithub.com/hgrecco/pint/issues/1805), PR [#1832](https://togithub.com/hgrecco/pint/issues/1832)) - Documented to_preferred and created added an autoautoconvert_to_preferred registry option. (PR [#1803](https://togithub.com/hgrecco/pint/issues/1803)) - Enable Pint to parse uncertainty numbers. (See [#1611](https://togithub.com/hgrecco/pint/issues/1611), [#1614](https://togithub.com/hgrecco/pint/issues/1614)) - Optimize matplotlib unit conversion for Quantity arrays (PR [#1819](https://togithub.com/hgrecco/pint/issues/1819)) - Add numpy.linalg.norm implementation. (PR [#1251](https://togithub.com/hgrecco/pint/issues/1251)) ### [`v0.22`](https://togithub.com/hgrecco/pint/blob/HEAD/CHANGES#022-2023-05-25) [Compare Source](https://togithub.com/hgrecco/pint/compare/0.21.1...0.22) - Drop Python 3.8 compatability following NEP-29. - Drop NumPy < 1.21 following NEP-29. - Improved typing experience. - Migrated fully to pyproject.toml. - Migrated to ruff. - In order to make static typing possible as required by mypy and similar tools, the way to subclass the registry has been changed. - Allow non-quantity atol parameters for isclose and allclose. (PR [#1783](https://togithub.com/hgrecco/pint/issues/1783)) ### [`v0.21.1`](https://togithub.com/hgrecco/pint/compare/0.21...0.21.1) [Compare Source](https://togithub.com/hgrecco/pint/compare/0.21...0.21.1) ### [`v0.21`](https://togithub.com/hgrecco/pint/blob/HEAD/CHANGES#021-2023-05-01) [Compare Source](https://togithub.com/hgrecco/pint/compare/0.20.1...0.21) - Add PEP621/631 support. (Issue [#1647](https://togithub.com/hgrecco/pint/issues/1647)) - Exposed matplotlib unit formatter (PR [#1703](https://togithub.com/hgrecco/pint/issues/1703)) - Fix error when when re-registering a formatter. (PR [#1629](https://togithub.com/hgrecco/pint/issues/1629)) - Add new SI prefixes: ronna-, ronto-, quetta-, quecto-. (PR [#1652](https://togithub.com/hgrecco/pint/issues/1652)) - Fix unit check with `atol` using `np.allclose` & `np.isclose`. (Issue [#1658](https://togithub.com/hgrecco/pint/issues/1658)) - Implementation for numpy.positive added for Quantity. (PR [#1663](https://togithub.com/hgrecco/pint/issues/1663)) - Changed frequency to angular frequency in the docs. (PR [#1668](https://togithub.com/hgrecco/pint/issues/1668)) - Remove deprecated `alen` numpy function (PR [#1678](https://togithub.com/hgrecco/pint/issues/1678)) - Updated URLs for log and offset unit errors. (PR [#1727](https://togithub.com/hgrecco/pint/issues/1727)) - Patched TYPE_CHECKING import regression. (PR [#1686](https://togithub.com/hgrecco/pint/issues/1686)) - Parse '°' along with previous text, rather than adding a space, allowing, eg 'Δ°C' as a unit. (PR [#1729](https://togithub.com/hgrecco/pint/issues/1729)) - Improved escaping of special characters for LaTeX format (PR [#1712](https://togithub.com/hgrecco/pint/issues/1712)) - Avoid addition of spurious trailing zeros when converting units and non-int-type is Decimal (PR [#1625](https://togithub.com/hgrecco/pint/issues/1625)). - Implementation for numpy.delete added for Quantity. (PR [#1669](https://togithub.com/hgrecco/pint/issues/1669)) - Fixed Quantity type returned from `__dask_postcompute__`. (PR [#1722](https://togithub.com/hgrecco/pint/issues/1722)) - Added Townsend unit (PR [#1738](https://togithub.com/hgrecco/pint/issues/1738)) - Fix get_compatible_units() in dynamically added units. (Issue [#1725](https://togithub.com/hgrecco/pint/issues/1725)) - Fix pint-convert script (Issue [#1646](https://togithub.com/hgrecco/pint/issues/1646)) - Honor non_int_type when dividing. (Issue [#1505](https://togithub.com/hgrecco/pint/issues/1505)) - Fix `trapz`, `dot`, and `cross` to work properly with non-multiplicative units (Issue [#1593](https://togithub.com/hgrecco/pint/issues/1593)) ##### Breaking Changes - Support percent and ppm units. Support the `%` symbol. (Issue [#1277](https://togithub.com/hgrecco/pint/issues/1277)) - Fix error when parsing subtraction operator followed by white space. (PR [#1701](https://togithub.com/hgrecco/pint/issues/1701)) - Removed Td as an alias for denier (within the Textile group)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.