OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=46
670 lines
33 KiB
Plaintext
670 lines
33 KiB
Plaintext
-------------------------------------------------------------------
|
||
Thu Nov 27 06:05:19 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||
|
||
- Only require pytest-subtests with pytest < 9.
|
||
|
||
-------------------------------------------------------------------
|
||
Tue Apr 22 01:40:02 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||
|
||
- Support both lowercased and unnormalized metadata directory names.
|
||
|
||
-------------------------------------------------------------------
|
||
Wed Nov 20 15:43:38 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||
|
||
- 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)
|
||
|
||
-------------------------------------------------------------------
|
||
Sun Nov 3 02:22:46 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||
|
||
- Add patch support-python-313.patch:
|
||
* Do not mix frozen and non-frozen dataclasses.
|
||
|
||
-------------------------------------------------------------------
|
||
Mon Aug 5 18:59:29 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||
|
||
- 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)
|
||
|
||
-------------------------------------------------------------------
|
||
Mon Jul 8 01:28:27 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||
|
||
- 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.
|
||
|
||
-------------------------------------------------------------------
|
||
Sun Feb 4 10:46:35 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||
|
||
- 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.
|
||
|
||
-------------------------------------------------------------------
|
||
Thu Dec 28 15:25:28 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||
|
||
- Add %{?sle15_python_module_pythons}
|
||
|
||
-------------------------------------------------------------------
|
||
Tue Aug 1 11:39:05 UTC 2023 - Markéta Machová <mmachova@suse.com>
|
||
|
||
- Update to 0.22
|
||
* Add PEP621/631 support.
|
||
* Exposed matplotlib unit formatter
|
||
* Add new SI prefixes: ronna-, ronto-, quetta-, quecto-.
|
||
* multiple numpy compat fixes
|
||
* Parse '°' along with previous text, rather than adding a space,
|
||
allowing, eg 'Δ°C' as a unit.
|
||
* Drop Python 3.8 compatability following NEP-29.
|
||
* Drop NumPy < 1.21 following NEP-29.
|
||
* Migrated fully to pyproject.toml.
|
||
|
||
-------------------------------------------------------------------
|
||
Wed Jan 4 20:05:35 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||
|
||
- 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.
|
||
|
||
-------------------------------------------------------------------
|
||
Tue May 31 03:00:36 UTC 2022 - Arun Persaud <arun@gmx.de>
|
||
|
||
- specfile:
|
||
* update copyright year
|
||
* require python >= 3.8, numpy >= 1.19
|
||
|
||
- update to version 0.19.2:
|
||
* Add the "separate_format_defaults" registry setting (Issue #1501,
|
||
PR #1503)
|
||
* Handle definitions @import from relative paths on Windows (Issue
|
||
#1508, thanks khaeru)
|
||
|
||
- changes from version 0.19.1:
|
||
* Provide a method to iter the definitions in the order they appear,
|
||
recursing the imported files. (Issue #1498)
|
||
|
||
- changes from version 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+
|
||
|
||
-------------------------------------------------------------------
|
||
Sat Nov 27 20:37:27 UTC 2021 - Arun Persaud <arun@gmx.de>
|
||
|
||
- specfile:
|
||
* added version requirement to numpy
|
||
|
||
- update to version 0.18:
|
||
* 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)
|
||
|
||
-------------------------------------------------------------------
|
||
Mon Apr 19 04:13:18 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||
|
||
- 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.
|
||
|
||
-------------------------------------------------------------------
|
||
Wed Jan 20 16:54:45 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
|
||
|
||
- Use %python_alternative to fix multi Python 3 builds
|
||
|
||
-------------------------------------------------------------------
|
||
Sat Oct 10 19:19:46 UTC 2020 - Arun Persaud <arun@gmx.de>
|
||
|
||
- update to version 0.16.1:
|
||
* Fix unpickling, now it is using the APP_REGISTRY as expected.
|
||
(Issue #1175)
|
||
* require importlib-[resources|metadata]
|
||
|
||
- changes from version 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)
|
||
|
||
-------------------------------------------------------------------
|
||
Fri Sep 18 10:59:40 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||
|
||
- 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
|
||
|
||
-------------------------------------------------------------------
|
||
Tue Jul 7 10:45:45 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||
|
||
- update to 0.14
|
||
* Changes required to support Pint-Pandas 0.1.
|
||
* Reinstated support for pickle protocol 0 and 1, which is required by pytables
|
||
(Issue #1036, Thanks Guido Imperiale)
|
||
* Fixed bug with multiplication of Quantity by dict (Issue #1032)
|
||
* Bare zeros and NaNs (not wrapped by Quantity) are now gracefully accepted by all numpy
|
||
operations; e.g. np.stack([Quantity([1, 2], "m"), [0, np.nan]) is now valid, whereas
|
||
np.stack([Quantity([1, 2], "m"), [3, 4]) will continue raising DimensionalityError.
|
||
(Issue #1050, Thanks Guido Imperiale)
|
||
* NaN is now treated the same as zero in addition, subtraction, equality, and
|
||
disequality (Issue #1051, Thanks Guido Imperiale)
|
||
* Fixed issue where quantities with a very large magnitude would throw an IndexError
|
||
when using to_compact()
|
||
* Fixed crash when a Unit with prefix is declared for the first time while a Context
|
||
containing unit redefinitions is active
|
||
(Issues #1062 and #1097, Thanks Guido Imperiale)
|
||
* New implementation of 'Lx' String Format Type Option
|
||
The old implementation treated 'Lx' as 'S' as produced by 'uncertainties'
|
||
package, but that is not fully compatible with SIunitx. The new code protects
|
||
SIunitx by fixing what unceratinties produces.
|
||
(Issue #814)
|
||
* Added link to budding `pint-xarray` interface library to the docs, next to
|
||
the link to pint*pandas. (Thanks Tom Nicholas.)
|
||
* Removed outdated `_dir` attribute of `UnitsRegistry`, and added `__iter__`
|
||
method so that now `list(ureg)` returns a list of all units in registry.
|
||
(Issue #1072, Thanks Tom Nicholas)
|
||
* Replace pkg_resources.version to importlib.metadata.version. (Issue #1083)
|
||
* Fix typo in docs for wraps example with optional arguments. (Issue #1088)
|
||
* Add momentum as a dimension
|
||
* Fixed a bug where unit exponents were only partially superscripted in HTML format
|
||
* Multiple contexts containing the same redefinition can now be stacked
|
||
(Issue #1108, Thanks Guido Imperiale)
|
||
* Fixed crash when some specific combinations of contexts were enabled
|
||
(Issue #1112, Thanks Guido Imperiale)
|
||
* Added support for checking prefixed units using `in` keyword (Issue #1086)
|
||
* Updated many examples in the documentation to reflect Pint's current behavior
|
||
* Add full support for Decimal and Fraction at the registry level.
|
||
**BREAKING CHANGE**:
|
||
`use_decimal` is deprecated. Use `non_int_type=Decimal` when instantiating
|
||
the registry.
|
||
* Fixed bug where numpy.pad didn't work without specifying constant_values or
|
||
end_values (Issue #1026)
|
||
|
||
|
||
-------------------------------------------------------------------
|
||
Wed Jun 3 11:26:14 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||
|
||
- 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)
|
||
|
||
-------------------------------------------------------------------
|
||
Fri May 15 08:22:54 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||
|
||
- Package requires pytest 4.x or newer
|
||
|
||
-------------------------------------------------------------------
|
||
Mon Apr 20 10:55:43 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||
|
||
- Remove py2 dep as the package is marked as python3 only
|
||
|
||
-------------------------------------------------------------------
|
||
Thu Jan 30 15:13:22 UTC 2020 - Todd R <toddrme2178@gmail.com>
|
||
|
||
- Update to 0.10.1
|
||
* Fixed bug introduced in 0.10 that prevented creation of size-zero Quantities
|
||
from NumPy arrays by multiplication.
|
||
* Fixed several Sphinx issues. Fixed intersphinx hooks to all classes missing.
|
||
* Fixed __array__ signature to match numpy docs
|
||
- Update to 0.10
|
||
* **BREAKING CHANGE**:
|
||
Boolean value of Quantities with offsets units is ambiguous, and so, now a ValueError
|
||
is raised when attempting to cast such a Quantity to boolean.
|
||
* **BREAKING CHANGE**:
|
||
`__array_ufunc__` has been implemented on `pint.Unit` to permit
|
||
multiplication/division by units on the right of ufunc-reliant array types (like
|
||
Sparse) with proper respect for the type casting hierarchy. However, until an
|
||
upstream issue with NumPy is resolved,
|
||
this breaks creation of Masked Array Quantities by multiplication on the right.
|
||
* Documentation on Pint's array type compatibility has been added to the NumPy support
|
||
page, including a graph of the duck array type casting hierarchy as understood by Pint
|
||
for N-dimensional arrays.
|
||
* Improved compatibility for downcast duck array types like Sparse.COO. A collection
|
||
of basic tests has been added.
|
||
* Improvements to wraps and check:
|
||
> fail upon decoration (not execution) by checking wrapped function signature against
|
||
wraps/check arguments.
|
||
(might BREAK test code)
|
||
> wraps only accepts strings and Units (not quantities) to avoid confusion with magnitude.
|
||
(might BREAK code not conforming to documentation)
|
||
> when strict=True, strings that can be parsed to quantities are accepted as arguments.
|
||
* Add revolutions per second (rps)
|
||
* Improved compatibility for upcast types like xarray's DataArray or Dataset, to which
|
||
Pint Quantities now fully defer for arithmetic and NumPy operations. A collection of
|
||
basic tests for proper deferral has been added (for full integration tests, see
|
||
xarray's test suite). The list of upcast types is available at
|
||
`pint.compat.upcast_types` in the API.
|
||
* Moved docstrings to Numpy Docs
|
||
* Added tests for immutability of the magnitude's type under common operations
|
||
* Switched test configuration to pytest and added tests of Pint's matplotlib support.
|
||
* Deprecate array protocol fallback except where explicitly defined (`__array__`,
|
||
`__array_priority__`, `__array_function__`, `__array_ufunc__`). The fallback will
|
||
remain until the next minor version, or if the environment variable
|
||
`PINT_ARRAY_PROTOCOL_FALLBACK` is set to 0.
|
||
* Removed eval usage when creating UnitDefinition and PrefixDefinition from string.
|
||
* Added `fmt_locale` argument to registry.
|
||
* Better error message when Babel is not installed.
|
||
* It is now possible to redefine units within a context, and use pint for currency
|
||
conversions.
|
||
* NaN (any capitalization) in a definitions file is now treated as a number
|
||
* Added slinch to Avoirdupois group
|
||
* Fix bug where ureg.disable_contexts() would fail to fully disable throwaway contexts
|
||
* Use black, flake8, and isort on the project
|
||
* Auto-increase package version at every commit when pint is installed from the git tip,
|
||
e.g. pip install git+https://github.com/hgrecco/pint.git.
|
||
* Fix HTML (Jupyter Notebook) and LateX representation of some units
|
||
* Fixed the definition of RKM unit as gf / tex
|
||
* **BREAKING CHANGE**:
|
||
Implement NEP-18 <https://numpy.org/neps/nep-0018-array-function-protocol.html> for
|
||
Pint Quantities. Most NumPy functions that previously stripped units when applied to
|
||
Pint Quantities will now return Quantities with proper units (on NumPy v1.16 with
|
||
the array_function protocol enabled or v1.17+ by default) instead of ndarrays. Any
|
||
non-explictly-handled functions will now raise a "no implementation found" TypeError
|
||
instead of stripping units. The previous behavior is maintained for NumPy < v1.16 and
|
||
when the array_function protocol is disabled.
|
||
* Implementation of NumPy ufuncs has been refactored to share common utilities with
|
||
NumPy function implementations
|
||
* Pint Quantities now support the `@` matrix mulitiplication operator (on NumPy v1.16+),
|
||
as well as the `dot`, `flatten`, `astype`, and `item` methods.
|
||
* **BREAKING CHANGE**:
|
||
Fix crash when applying pprint to large sets of Units.
|
||
DefinitionSyntaxError is now a subclass of SyntaxError (was ValueError).
|
||
DimensionalityError and OffsetUnitCalculusError are now subclasses of TypeError (was
|
||
ValueError).
|
||
* All Exceptions can now be pickled and can be accessed from the top-level package.
|
||
* Mark regex as raw strings to avoid unnecessary warnings.
|
||
* Implement registry-based string preprocessing as list of callables.
|
||
* Context activation and deactivation is now instantaneous; drastically reduced memory
|
||
footprint of a context (it used to be ~1.6MB per context; now it's a few bytes)
|
||
* **BREAKING CHANGE**:
|
||
Drop support for Python < 3.6, numpy < 1.14, and uncertainties < 3.0;
|
||
if you still need them, please install pint 0.9.
|
||
Pint now adheres to NEP-29 <https://numpy.org/neps/nep-0029-deprecation_policy.html>
|
||
as a rolling dependencies version policy.
|
||
* Show proper code location of UnitStrippedWarning exception.
|
||
* Reimplement _Quantity.__iter__ to return an iterator.
|
||
* Add http://www.dimensionalanalysis.org/ to README
|
||
* Allow for user defined units formatting.
|
||
* Quantity, Unit, and Measurement are now accessible as top-level classes
|
||
(pint.Quantity, pint.Unit, pint.Measurement) and can be
|
||
instantiated without explicitly creating a UnitRegistry
|
||
* Contexts don't need to have a name anymore
|
||
* "Board feet" unit added top default registry
|
||
* New syntax to add aliases to already existing definitions
|
||
* copy.deepcopy() can now copy a UnitRegistry
|
||
* Enabled many tests in test_issues when numpy is not available
|
||
* Document the '_' symbols found in the definitions files
|
||
* Improve OffsetUnitCalculusError message.
|
||
* Atomic units for intensity and electric field.
|
||
* Allow np arrays of scalar quantities to be plotted.
|
||
* Updated gravitational constant to CODATA 2018.
|
||
* Update to new SI definition and CODATA 2018.
|
||
* Allow units with aliases but no symbol.
|
||
* Fix definition of dimensionless units and constants.
|
||
* Added RKM unit (used in textile industry).
|
||
* Remove __name__ method definition in BaseRegistry.
|
||
* Added t_force, short_ton_force and long_ton_force.
|
||
* Fixed error message of DefinitionSyntaxError
|
||
* Expanded the potential use of Decimal type to parsing.
|
||
* Fixed gram name to allow translation by babel.
|
||
* Default group should only have orphan units.
|
||
* Added custom constructors from_sequence and from_list.
|
||
* Add quantity formatting with ndarray.
|
||
* Add pint-pandas notebook docs
|
||
* Use µ as default abbreviation for micro.
|
||
|
||
-------------------------------------------------------------------
|
||
Sat Mar 30 19:36:35 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||
|
||
- Fix funcsigs dependency
|
||
- Remove unused devel package dep
|
||
- Remove test bconds
|
||
|
||
-------------------------------------------------------------------
|
||
Tue Mar 12 18:21:59 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||
|
||
- Update to version 0.9:
|
||
- Add support for registering with matplotlib’s unit handling
|
||
(gh#hgrecco/pint#317, thanks dopplershift)
|
||
- Add converters for matplotlib’s unit support.
|
||
(gh#hgrecco/pint#317, thanks Ryan May)
|
||
- Fix unwanted side effects in auto dimensionality reduction.
|
||
(gh#hgrecco/pint#516, thanks Ben Loer)
|
||
- Allow dimensionality check for non Quantity arguments.
|
||
- Make Quantity and UnitContainer objects hashable.
|
||
(gh#hgrecco/pint#286, thanks Nevada Sanchez)
|
||
- Fix unit tests errors with numpy >=1.13.
|
||
(gh#hgrecco/pint#577, thanks cpascual)
|
||
- Avoid error in in-place exponentiation with numpy > 1.11.
|
||
(gh#hgrecco/pint#577, thanks cpascual)
|
||
- fix compatible units in context. (thanks enrico)
|
||
- Added warning for unsupported ufunc. (gh#hgrecco/pint#626,
|
||
thanks kanhua)
|
||
- Improve IPython pretty printers. (gh#hgrecco/pint#590, thanks
|
||
tecki)
|
||
- Drop Support for Python 2.6, 3.0, 3.1 and 3.2.
|
||
(gh#hgrecco/pint#567)
|
||
- Prepare for deprecation announced in Python 3.7
|
||
(gh#hgrecco/pint#747, thanks Simon Willison)
|
||
- Added several new units and Systems (gh#hgrecco/pint#749,
|
||
gh#hgrecco/pint#737)
|
||
- Started experimental pandas support (gh#hgrecco/pint#746 and
|
||
others. Thanks andrewgsavage, znicholls and others)
|
||
- wraps and checks now supports kwargs and defaults.
|
||
(gh#hgrecco/pint#660, thanks jondoesntgit)
|
||
|
||
-------------------------------------------------------------------
|
||
Wed Aug 23 22:41:06 UTC 2017 - toddrme2178@gmail.com
|
||
|
||
- Implement single-spec version
|
||
- Update to version 0.8.1
|
||
* Add support for datetime math. (Issue #510, thanks robertd)
|
||
* Fixed _repr_html_ in Python 2.7. (Issue #512)
|
||
* Implemented BaseRegistry.auto_reduce_dimensions. (Issue #500, thanks robertd)
|
||
* Fixed dimension compatibility bug introduced on Registry refactoring (Issue #523, thanks dalito)
|
||
- Update to version 0.8
|
||
* Refactored the Registry in multiple classes for better separation of concerns and clarity.
|
||
* Implemented support for defining multiple units per define call (one definition per line). (Issue #462)
|
||
* In pow and ipow, allow array exponents (with len > 1) when base is dimensionless. (Issue #483)
|
||
* Wraps now gets the canonical name of the unit when passed as string. (Issue #468)
|
||
* NumPy exp and log keeps the type (Issue #95)
|
||
* Implemented a function decorator to ensure that a context is active (with_context) (Issue #465)
|
||
* Add warning when a System contains an unknown Group. (Issue #472)
|
||
* Add conda-forge installation snippet. (Issue #485, thanks stadelmanma)
|
||
* Properly support floor division and modulo. (Issue #474, thanks tecki)
|
||
* Measurement Correlated variable fix. (Issue #463, thanks tadhgmister)
|
||
* Implement degree sign handling. (Issue #449, thanks iamthad)
|
||
* Change UndefinedUnitError to inherit from AttributeError (Issue #480, thanks jhidding)
|
||
* Simplified travis for faster testing.
|
||
* Fixed order units in siunitx formatting. (Issue #441)
|
||
* Changed Systems lister to return a list instead of frozenset. (Issue #425, thanks GloriaVictis)
|
||
* Fixed issue with negative values in to_compact() method. (Issue #443, thanks nowox)
|
||
* Improved defintions. (Issues #448, thanks gdonval)
|
||
* Improved Parser to support capital “E” on scientific notation. (Issue #390, thanks javenoneal)
|
||
* Make sure that prefixed units are defined on the registry when unplicking. (Issue #405)
|
||
* Automatic unit names translation through babel. (Issue #338, thanks alexbodn)
|
||
* Support pickling Unit objects. (Issue #349)
|
||
* Add support for wavenumber/kayser in spectroscopy context. (Issue #321, thanks gerritholl)
|
||
* Improved formatting. (thanks endolith and others)
|
||
* Add support for inline comments in definitions file. (Issue #366)
|
||
* Implement Unit.__deepcopy__. (Issue #357, thanks noahl)
|
||
* Allow changing shape for Quantities with numpy arrays. (Issue #344, thanks tecki)
|
||
|
||
-------------------------------------------------------------------
|
||
Fri Jun 3 15:47:46 UTC 2016 - tbechtold@suse.com
|
||
|
||
- update to 0.7.2:
|
||
- Fixed backward incompatibility problem when parsing dimensionless units.
|
||
- Use NIST as source for most of the unit information.
|
||
- Added message to assertQuantityEqual.
|
||
- Added detection of circular dependencies in definitions.
|
||
- Added Systems and groups.
|
||
- Implemented references for wraps decorator.
|
||
- Added check decorator to UnitRegistry.
|
||
- Added compact conversion.
|
||
- Added compact formating code.
|
||
- New Unit Class.
|
||
- Refactor UnitRegistry.
|
||
- Move definitions, errors, and converters into their own modules.
|
||
- UnitsContainer is now immutable
|
||
- New parser and evaluator.
|
||
- Added support for Unicode identifiers.
|
||
- Added m_as as way top retrieve the magnitude in different units.
|
||
- Added Short form for magnitude and units.
|
||
- Improved deepcopy.
|
||
- Improved testing infrastructure.
|
||
- Improved docs.
|
||
- Fixed short names on electron_volt and hartree.
|
||
- Fixed definitions of scruple and drachm.
|
||
- Fixed troy ounce to 480 'grains'.
|
||
- Added 'quad' as a unit of energy (= 10**15 Btu).
|
||
- Added "hectare" as a supported unit of area and 'ha' as the symbol for hectare.
|
||
- Added peak sun hour and Langley.
|
||
- Added photometric units: lumen & lux.
|
||
- A fraction magnitude quantity is conserved
|
||
- Improved conversion performance by removing unnecessart try/except.
|
||
- Added to_tuple and from_tuple to facilitate serialization.
|
||
- Fixed support for NumPy 1.10 due to a change in the Default casting rule
|
||
- Infrastructure: Added doctesting.
|
||
- Infrastructure: Better way to specify exclude matrix in travis.
|
||
- Use gzip tarball instead of zip
|
||
|
||
-------------------------------------------------------------------
|
||
Tue Nov 11 14:26:42 UTC 2014 - toddrme2178@gmail.com
|
||
|
||
- Update to 0.6
|
||
- Fix operations with measurments and user defined units. (Issue #204)
|
||
- Faster conversions through caching and other performance improvements. (Issue #193, thanks MatthieuDartiailh)
|
||
- Better error messages on Quantity.__setitem__. (Issue #191)
|
||
- Fixed abbreviation of fluid_ounce. (Issue #187, thanks hsoft)
|
||
- Defined Angstrom symbol. (Issue #181, thanks JonasOlson)
|
||
- Removed fetching version from git repo as it triggers XCode installation on OSX. (Issue #178, thanks deanishe)
|
||
- Improved context documentation. (Issue #176 and 179, thanks rsking84)
|
||
- Added Chemistry context. (Issue #179, thanks rsking84)
|
||
- Fix help(UnitRegisty) (Issue #168)
|
||
- Optimized "get_dimensionality" and "get_base_name". (Issue #166 and #167, thanks jbmohler)
|
||
- Renamed ureg.parse_units parameter "to_delta" to "as_delta" to make clear. that no conversion happens. Accordingly, the parameter/property "default_to_delta" of UnitRegistry was renamed to "default_as_delta". (Issue #158, thanks dalit)
|
||
- Fixed problem when adding two uncertainties. (thanks dalito)
|
||
- Full support for Offset units (e.g. temperature) (Issue #88, #143, #147 and #161, thanks dalito)
|
||
|
||
-------------------------------------------------------------------
|
||
Mon Jul 7 14:21:16 UTC 2014 - toddrme2178@gmail.com
|
||
|
||
- Update to 0.5.1
|
||
- Implemented a standard way to change the registry used in unpickling operations. (Issue #148)
|
||
- Fix bug where conversion would fail due to caching. (Issue #140, thanks jdreaver)
|
||
- Allow assigning Not a Number to a quantity array. (Issue #127)
|
||
- Decoupled Quantity in place and not in place unit conversion methods.
|
||
- Return None in functions that modify quantities in place.
|
||
- Improved testing infrastructure to check for unwanted warnings.
|
||
- Added test function at the package level to run all tests.
|
||
|
||
-------------------------------------------------------------------
|
||
Thu May 8 10:40:45 UTC 2014 - toddrme2178@gmail.com
|
||
|
||
- Update to 0.5.0
|
||
- Improved test suite helper functions.
|
||
- Print honors default format w/o format().
|
||
- Fixed sum() by treating number zero as a special case.
|
||
- Improved behaviour in ScaleConverter, OffsetConverter
|
||
and Quantity.to.
|
||
- Reimplemented loading of default definitions to allow Pint in
|
||
a cx_freeze or similar package.
|
||
- Implemented parsing of pretty printed units.
|
||
- Fixed representation of dimensionless quantities.
|
||
- Raise error when invalid formatting code is given.
|
||
- Default registry to lazy load, raise error on redefinition.
|
||
- Added condensed format.
|
||
- Added UnitRegistry () operator to parse
|
||
expression replacing [].
|
||
- Optional case insensitive unit parsing.
|
||
- Change the Quantity mutability depending on magnitude type.
|
||
- Implemented API to list compatible units.
|
||
- Implemented cache of key UnitRegistry methods.
|
||
- Rewrote the Measurement class to use uncertainties.
|
||
|
||
-------------------------------------------------------------------
|
||
Thu Mar 27 13:03:29 UTC 2014 - toddrme2178@gmail.com
|
||
|
||
- Update to 0.4.2
|
||
- Python 2.6 support
|
||
- Fixed symbol for inch.
|
||
- Stop raising AttributeError when wrapping funcs without all of the attributes.
|
||
- Fixed warning appearing in Py2.x when comparing a Numpy Array with an empty string.
|
||
- Add links to AUR packages in docs.
|
||
- Fixed garbage collection related problem.
|
||
|
||
-------------------------------------------------------------------
|
||
Tue Feb 4 13:29:08 UTC 2014 - toddrme2178@gmail.com
|
||
|
||
- Initial version (0.4.1)
|