Pint

Latest version: v0.24.4

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

Scan your dependencies

Page 1 of 9

0.25.0

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

- Nothing changed yet

0.24.4

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

- add error for prefixed non multi units (1998)
- build: typing_extensions version
- build: switch from appdirs to platformdirs
- fix GenericPlainRegistry getattr type (2045)
- Replace references to the deprecated `UnitRegistry.default_format` (2058)
- fix: upgrade to flexparser>=0.4, exceptions are no longer dataclasses.
(required for Python 3.13)

0.24.2

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

- Fix the default behaviour for pint-convert (cli) for importing uncertainties package (PR 2032, Issue 2016)
- Added mu and mc as alternatives for SI micro prefix
- Added ℓ as alternative for liter
- Support permille units and `‰` symbol (PR 2033, Issue 1963)
- Switch from appdirs to platformdirs.
- Fixes issues related to GenericPlainRegistry.__getattr__ type (PR 2038, Issues 1946 and 1804)
- Removed deprecated references in documentation and tests (PR 2058, Issue 2057)

0.24.1

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

- Fix custom formatter needing the registry object. (PR 2011)
- Support python 3.9 following difficulties installing with NumPy 2. (PR 2019)
- Fix default formatting of dimensionless unit issue. (PR 2012)
- Fix bug preventing custom formatters with modifiers working. (PR 2021)

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)
- Minimum version requirement added for typing_extensions>=4.0.0.
(PR 1996)
- 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)
- Creating prefixed offset units now raises an error.
(PR 1998)
- 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)

Page 1 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.