Pint

Latest version: v0.24

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

Scan your dependencies

Page 1 of 8

0.25

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

Nothing added yet.

0.24

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

- Fix detection of invalid conversion between offset and delta units. (PR 1905)
- Added dBW, decibel Watts, which is used in RF high power applications
- NumPy 2.0 support
(PR 1985, 1971)
- Implement numpy roll (Related to issue 981)
- Implement numpy correlate
(PR 1990)
- Add `dim_sort` function to _formatter_helpers.
- Add `dim_order` and `default_sort_func` properties to FullFormatter.
(PR 1926, fixes Issue 1841)
- Documented packages using pint.
(PR 1960)
- Fixed bug causing operations between arrays of quantity scalars and quantity holding
array resulting in incorrect units.
(PR 1677)
- Fix LaTeX siuntix formatting when using non_int_type=decimal.Decimal.
(PR 1977)
- Added refractive index units.
(PR 1816)
- Fix converting to offset units of higher dimension e.g. gauge pressure
(PR 1949)
- Fix unhandled TypeError when auto_reduce_dimensions=True and non_int_type=Decimal
(PR 1853)
- Improved error message in `get_dimensionality()` when non existent units are passed.
(PR 1874, Issue 1716)

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)

Page 1 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.