1fd1c0b062
- update to 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. - drop support-python-313.patch (upstream)
Dirk Mueller2024-11-20 15:44:29 +00:00
70e57fe768
- update to 0.24.3: * 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)
Dirk Mueller2024-08-05 18:59:37 +00:00
1b6a7c3726
Accepting request 1187422 from devel:languages:python:numeric
Ana Guerrero2024-07-15 17:49:23 +00:00
e2e185a881
- Update to 0.24.1: * Fix custom formatter needing the registry object. * Support python 3.9 following difficulties installing with NumPy 2. * Fix default formatting of dimensionless unit issue. * Fix bug preventing custom formatters with modifiers working. * Fix detection of invalid conversion between offset and delta units. * Added dBW, decibel Watts, which is used in RF high power applications. * NumPy 2.0 support * Implement numpy roll (Related to issue #981) * Implement numpy correlate * Add dim_sort function to _formatter_helpers. * Add dim_order and default_sort_func properties to FullFormatter. * Fixed bug causing operations between arrays of quantity scalars and quantity holding array resulting in incorrect units. * Fix LaTeX siuntix formatting when using non_int_type=decimal.Decimal. * Added refractive index units. * Fix converting to offset units of higher dimension e.g. gauge pressure * Fix unhandled TypeError when auto_reduce_dimensions=True and non_int_type=Decimal * Improved error message in get_dimensionality() when non existent units are passed.
Steve Kowalik2024-07-08 01:30:38 +00:00
d4fb945652
Accepting request 1143987 from devel:languages:python:numeric
Ana Guerrero2024-02-04 18:09:52 +00:00
8cad34ded3
- update to 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 * Add codspeed github action. * Move benchmarks to pytest-benchmarks. * Support pytest on python 3.12 wrt Fraction formatting change * Fixed Transformation type protocol. * Documented to_preferred and created added an autoautoconvert_to_preferred registry option. * Enable Pint to parse uncertainty numbers. * Optimize matplotlib unit conversion for Quantity arrays * Add numpy.linalg.norm implementation. * Better support for pandas and dask. * Implements a first benchmark suite in airspeed velocity (asv). - Improved behaviour in ScaleConverter, OffsetConverter - Reimplemented loading of default definitions to allow Pint in - Added UnitRegistry () operator to parse
Dirk Mueller2024-02-04 11:18:40 +00:00
2e4f639bfa
- update to 0.20.1: * Reorganized code into facets. * The definition parser is now completely appart, making it easy to try other formats. * Extra requires for optional packages are now explicit in setup.cfg * Parse both Greek mu and micro Unicode points without error. * Added angular frequency documentation page. * Move ASV benchmarks to dedicated folder. (Issue #1542) * 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. * 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.
Dirk Mueller2023-01-04 20:07:50 +00:00
6a24c21311
- Update to 0.17: * Add the Wh unit for battery capacity measurements * Fix issue with reducable dimensionless units when using power (Quantity**ndarray) * Fix comparisons between Quantities and Measurements. * UnitsContainer returns false if other is str and cannnot be parsed * Fix numpy.linalg.solve unit output. (Issue #1246) * Support numpy.lib.stride_tricks.sliding_window_view. (Issue #1255) * Move all tests to pytest. * Quantity comparisons now ensure other is Quantity. * Add sign function compatibility. * Fix scalar to ndarray tolist. * Fix tolist function with scalar ndarray. * Implements a first benchmark suite in airspeed velocity (asv). * Power for pseudo-dimensionless units. - No longer build for Python 3.6, due to no NumPy.
Steve Kowalik2021-04-19 04:14:40 +00:00
e783a37019
- update to 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. - Add case_sensitive option to registry for case (in)sensitive handling when parsing - 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
Dirk Mueller2020-09-18 11:01:24 +00:00
34ded80db9
- update to 0.11: - Added pint-convert script. - Remove default_en_0.6.txt. - Make __str__ and __format__ locale configurable. (Issue #984) - Quantities wrapping NumPy arrays will no longer warning for the changed array function behavior introduced in 0.10. (Issue #1029, Thanks Jon Thielen) - **BREAKING CHANGE**: The array protocol fallback deprecated in version 0.10 has been removed. (Issue #1029, Thanks Jon Thielen) - Now we use pyproject.toml for providing setuptools_scm settings - Remove default_en_0.6.txt - Reorganize long_description. - Moved Pi to definitions files. - Use ints (not floats) a defaults at many points in the codebase as in Python 3 the true division is the default one. - **BREAKING CHANGE**: Added from_string method to all Definitions subclasses. The value/converter argument of the constructor no longer accepts an string. It is unlikely that this change affects the end user. - Added additional NumPy function implementations (allclose, intersect1d) (Issue #979, Thanks Jon Thielen) - Allow constants in units by using a leading underscore (Issue #989, Thanks Juan Nunez-Iglesias) - Fixed bug where to_compact handled prefix units incorrectly (Issue #960)
Dirk Mueller2020-06-03 11:28:16 +00:00