Pint

Latest version: v0.24.4

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

Scan your dependencies

Page 3 of 9

0.19

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

- Better separation between parsing and loading of definitions.
Implement a parsed "binary" version of "textual" definition files.
Infrastructure to disk cache parsed definition files and RegistryCache
resulting in a 10X speed up in registry instantiation when enabled.
(Issue 1465)
- Deprecate the old format defaulting behavior and prepare for the new one (Issue 1407)
- Fix a bug for offset units of higher dimension, e.g. gauge pressure.
(Issue 1066, thanks dalito)
- Fix type hints of function wrapper (Issue 1431)
- Upgrade min version of uncertainties to 3.1.4
- Add a example for `register_unit_format` to the formatting docs (Issue 1422).
- Fix setting options of the application registry (Issue 1403).
- Fix Quantity & Unit `is_compatible_with` with registry active contexts (Issue 1424).
- Allow Quantity to parse 'NaN' and 'inf(inity)', case insensitive
- Fix casting error when using to_reduced_units with array of int.
(Issue 1184)
- Use default numpy `np.printoptions` available since numpy 1.15.
- Implement `numpy.nanprod` (Issue 1369)
- Fix default_format ignored for measurement (Issue 1456)
- Add `pint.testing` with functions to compare pint objects in tests (Issue 1421).
- Fix handling modulo & floordiv operator in pint_eval (Issue 1470)
- Fix `to_compact` and `infer_base_unit` for non-float non_int_type.
- Fix `to_reduced_units` to work with dimensionless units. (Issue 919)
- Fix parsing of units string with same canonalized name (Issue 1441 & 1142)
- The pint-pandas example notebook has been moved to the pint-pandas package.

New Units
- `sverdrup` (PR 1404)
- `cooling_tower_ton` (PR 1484)

Breaking Changes

- Update hour default symbol to `h`. (Issue 719)
- Replace `h` with `ℎ` (U+210E) as default symbol for planck constant.
- Change minimal Python version support to 3.8+
- Change minimal Numpy version support to 1.19+

0.18

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

Release Manager: jules-cheron

- Implement use of Quantity in the Quantity constructor (convert to specified units).
(Issue 1231)
- Rename .readthedocs.yml to .readthedocs.yaml, update MANIFEST.in (Issue 1311)
- Fix a few small typos.
(Issue 1308)
- Fix babel format for `Unit`.
(Issue 1085)
- Fix handling of positional max/min arguments in clip function.
(Issue 1244)
- Fix string formatting of numpy array scalars.
- Fix default format for Measurement class (Issue 1300)
- Fix parsing of pretty units with same exponents but different sign. (Issue 1360)
- Convert the application registry to a wrapper object (Issue 1365)
- Add documentation for the string format options.
(Issue 1357, 1375, thanks keewis)
- Support custom units formats.
(Issue 1371, thanks keewis)
- Autoupdate pre-commit hooks.
- Improved the application registry.
(Issue 1366, thanks keewis)
- Improved testing isolation using pytest fixtures.

Breaking Changes

- pint no longer supports Python 3.6
- Minimum Numpy version supported is 1.17+
- Add supports for type hints for Quantity class. Quantity is now a Generic (PEP560).
- Add support for [PEP561](https://www.python.org/dev/peps/pep-0561/) (Package Type information)

0.17

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

- Add the Wh unit for battery capacity measurements
(PR 1260, thanks Maciej Grela)
- Fix issue with reducable dimensionless units when using power (Quantity**ndarray)
(Issue 1185)
- Fix comparisons between Quantities and Measurements.
(Issue 1134, thanks lewisamarshall)
- UnitsContainer returns false if other is str and cannnot be parsed
(Issue 1179, thanks rfrowe)
- Fix numpy.linalg.solve unit output. (Issue 1246)
- Support numpy.lib.stride_tricks.sliding_window_view. (Issue 1255)
- NEP29 Support docs.
- Move all tests to pytest.
- Fix to __pow__ and __ipow__
- Migrate to Github Actions.
(Issue 1236)
- Update linter to use pre-commit.
- Quantity comparisons now ensure other is Quantity.
- Add sign function compatibility.
(thanks Robin Tesse)
- Fix scalar to ndarray tolist.
- Fix tolist function with scalar ndarray.
(Issue 1195, thanks jules-ch)
- Corrected typos and dacstrings
- Implements a first benchmark suite in airspeed velocity (asv).
- Power for pseudo-dimensionless units.
(Issue 1185, thanks Kevin Fuhr)

0.16.1

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

- Fix unpickling, now it is using the APP_REGISTRY as expected.
(Issue 1175)

0.16

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

- Fixed issue where performing an operation of a Quantity with certain units would perform an in-place
unit conversion that modified the operand in addition to the returned value (Issues 1102 & 1144)
- Implements Logarithmic Units like dBm, dB or decade
(Issue 71, Thanks Dima Pustakhod, Clark Willison, Giorgio Signorello, Steven Casagrande, Jonathan Wheeler)
- Drop dependency on setuptools pkg_resources to read package resources, using std lib importlib.resources instead.
(Issue 1080)

0.15

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

- Change `Quantity` and `Unit` HTML (i.e., Jupyter notebook) repr away from LaTeX to a
simpler, more performant pretty-text and table based repr inspired by Sparse and Dask.
(Issue 654)
- Add `case_sensitive` option to registry for case (in)sensitive handling when parsing
units (Issue 1145)
- Implement Dask collection interface to support Pint Quantity wrapped Dask arrays.
- Started automatically testing examples in the documentation
- Fixed an exception generated when reducing dimensions with three or more
units of the same type
- Fixed right operand power for dimensionless Quantity to reflect numpy behavior. (Issue 1136)
- Eliminated warning when setting a masked value on an underlying MaskedArray.
- Add `sort` option to `formatting.formatter` to permit disabling sorting of component units in format string
- Implements Logarithmic Units like dBm, dB or decade
(Issue 71, Thanks Dima Pustakhod, Giorgio Signorello, Jonathan Wheeler)

Page 3 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.