Pint

Latest version: v0.23

Safety actively analyzes 613777 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 8

0.24

-----------------

- Nothing changed yet.

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)
- Add codspeed github action.
- Move benchmarks to pytest-benchmarks.
- Support pytest on python 3.12 wrt Fraction formatting change
(1818)
- Fixed Transformation type protocol.
(PR 1805, PR 1832)
- Documented to_preferred and created added an autoautoconvert_to_preferred registry option.
(PR 1803)
- Enable Pint to parse uncertainty numbers.
(See 1611, 1614)
- Optimize matplotlib unit conversion for Quantity arrays
(PR 1819)
- Add numpy.linalg.norm implementation.
(PR 1251)

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)

0.21

-----------------

- Add PEP621/631 support.
(Issue 1647)
- Exposed matplotlib unit formatter (PR 1703)
- Fix error when when re-registering a formatter.
(PR 1629)
- Add new SI prefixes: ronna-, ronto-, quetta-, quecto-.
(PR 1652)
- Fix unit check with `atol` using `np.allclose` & `np.isclose`.
(Issue 1658)
- Implementation for numpy.positive added for Quantity.
(PR 1663)
- Changed frequency to angular frequency in the docs.
(PR 1668)
- Remove deprecated `alen` numpy function
(PR 1678)
- Updated URLs for log and offset unit errors.
(PR 1727)
- Patched TYPE_CHECKING import regression.
(PR 1686)
- Parse '°' along with previous text, rather than adding a space,
allowing, eg 'Δ°C' as a unit.
(PR 1729)
- Improved escaping of special characters for LaTeX format
(PR 1712)
- Avoid addition of spurious trailing zeros when converting units and non-int-type is
Decimal (PR 1625).
- Implementation for numpy.delete added for Quantity.
(PR 1669)
- Fixed Quantity type returned from `__dask_postcompute__`.
(PR 1722)
- Added Townsend unit
(PR 1738)
- Fix get_compatible_units() in dynamically added units.
(Issue 1725)
- Fix pint-convert script
(Issue 1646)
- Honor non_int_type when dividing.
(Issue 1505)
- Fix `trapz`, `dot`, and `cross` to work properly with non-multiplicative units
(Issue 1593)

Breaking Changes

- Support percent and ppm units. Support the `%` symbol.
(Issue 1277)
- Fix error when parsing subtraction operator followed by white space.
(PR 1701)
- Removed Td as an alias for denier (within the Textile group)

0.20.1

-------------------

- Simplify registry subclassing.
(Issue 1631)
- Restore intersphinx cross reference functionality.
(Issue 1637)
- Use a newer version of flexparser that can deal with
imports in linked/temporary folders.
(Issue 1634)

0.20

-----------------

- Reorganized code into facets.
Each facet encapsulate a Pint functionality.
(See 1466, 1479)
- The definition parser is now completely appart, making it easy to try other formats.
(See 1595)
- Extra requires for optional packages are now explicit in setup.cfg
(See 1627)
- Parse both Greek mu and micro Unicode points without error.
(Issue 1030, 574)
- Added angular frequency documentation page.
- Move ASV benchmarks to dedicated folder. (Issue 1542)
- An ndim attribute has been added to Quantity and DataFrame has been added to upcast
types for pint-pandas compatibility. (1596)
- Fix a recursion error that would be raised when passing quantities to `cond` and `x`.
(Issue 1510, 1530)
- Update test_non_int tests for pytest.
- Better support for uncertainties (See 1611, 1614)
- Implement `numpy.broadcast_arrays` (1607)
- An ndim attribute has been added to Quantity and DataFrame has been added to upcast
types for pint-pandas compatibility. (1596)
- Fix a recursion error that would be raised when passing quantities to `cond` and `x`.
(Issue 1510, 1530)
- Update test_non_int tests for pytest.
- Create NaN-value quantities of appropriate non-int-type (Issue 1570).
- New documentation format and organization!
- Better support for pandas and dask.
- Fix masked arrays (with multiple values) incorrectly being passed through
setitem (Issue 1584)

- Add Quantity.to_preferred

Page 1 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.