=======
CHANGES
=======

------
0.16.1
------

- Fixed a couple of small bugs ([`PR#238 <https://github.com/python-quantities/python-quantities/pull/238>`_] and [`PR#242 <https://github.com/python-quantities/python-quantities/pull/242>`_])
- Added umath funcs: `maximum` & `minimum`

------
0.16.0
------

- Added support for NumPy 2.0, while maintaining support for older versions back to 1.22 [`PR#235 <https://github.com/python-quantities/python-quantities/pull/235>`_]. Many thanks to Björn Dahlgren and Zach McKenzie for this.
- Fixed a potential security hole [`PR#236 <https://github.com/python-quantities/python-quantities/pull/236>`_]
- Dropped support for Python 3.8

------
0.15.0
------

- Quantities now has type stubs for all classes and functions. Many thanks to Peter Konradi and Takumasa Nakamura for this major effort.
- Fixed a number of deprecations coming from NumPy (thanks to Zach McKenzie)
- Dropped support for NumPy 1.19, added testing for Numpy 1.25 and 1.26, and for Python 3.12

------
0.14.1
------

- Fixed a bug when scaling quantities with integer dtype [`PR#216 <https://github.com/python-quantities/python-quantities/pull/216>`_]

------
0.14.0
------

- Added decimeter to list of supported units [`PR#202 <https://github.com/python-quantities/python-quantities/pull/202>`_]
- Removed deprecated mb as symbol for millibar unit [`PR#203 <https://github.com/python-quantities/python-quantities/pull/203>`_]
- Fixed failure to preserve dtype in rescale [`PR#204 <https://github.com/python-quantities/python-quantities/pull/204>`_]
- Added exp2 as a supported ufunc
- Fixed failure to handle units with floordiv [`PR#207 <https://github.com/python-quantities/python-quantities/pull/207>`_]
- Added femtofarad (fF) to list of supported units
- Dropped support for Python 3.7
- Dropped support for NumPy versions older than 1.19
- Converted the project packaging from setup.py-based to pyproject.toml-based


------
0.13.0
------

- Dropped support for Python versions older than 3.7, in particular, for Python 2.7.
- Dropped support for NumPy versions older than 1.16
- Switched test runner to pytest, and CI to Github Actions


------
0.12.5
------

- Added preferred units support for .rescale
- Added dimensionless unit 'lsb' (least significant bit)
- Added SI multiples for Kelvin
- Fixed invalid escape sequence

All changes
***********

https://github.com/python-quantities/python-quantities/issues?utf8=✓&q=is%3Aclosed+closed%3A2020-01-08..2021-08-16

------
0.12.4
------

- Fix broken support for `pq.Quanitty('mbar')`
- Add a `__format__` implementation for Quantity
- Fix `np.arctan2` regression due to newer numpy version
- Fix "<ufunc 'clip'> not supported" error
- Test against Python 3.8 and NumPy 1.17

All changes
***********

https://github.com/python-quantities/python-quantities/issues?utf8=✓&q=is%3Aclosed+closed%3A2019-02-23..2020-01-08+

------
0.12.3
------

Updates to support NumPy up to version 1.16.1, and Python 3.7.
Added microcoulomb and millicoulomb units.

All changes
***********

https://github.com/python-quantities/python-quantities/issues?utf8=✓&q=is%3Aclosed%20closed%3A2018-07-03..2019-02-22


------
0.12.2
------

Added SI multiples for the byte unit (kB, MB, ...) and the IEC units (KiB, MiB...).

All changes
***********

https://github.com/python-quantities/python-quantities/issues?utf8=✓&q=is%3Aclosed%20closed%3A2017-09-01..2018-07-02


------
0.12.1
------

Bugs fixed
**********

https://github.com/python-quantities/python-quantities/issues?utf8=✓&q=is%3Aclosed%20closed%3A2017-08-02..2017-08-30

-----
0.12.0
-----

Removed support for Python 2.6, since NumPy removed support for it as of
version 1.12. Numpy-1.8.2 or later is now required.

Added more ufuncs: equal, not_equal, less, less_equal, greater, greater_equal


Bugs fixed
**********

https://github.com/python-quantities/python-quantities/issues?utf8=✓&q=is%3Aissue%20is%3Aclosed%20closed%3A2015-12-06..2017-08-01


-----
0.11.0
-----

Added many new unit definitions, including aliases for American/British spellings of liter/litre
The Quantity class can now be subclassed.
Supports `np.fabs`
The test suite is now run with Travis CI


Bugs fixed
**********

https://github.com/python-quantities/python-quantities/issues?utf8=✓&q=is%3Aissue%20is%3Aclosed%20closed%3A2011-09-27..2015-12-06


-----
0.10.0
-----

The dalton has been added as an alias for the unified atomic mass
unit, in response to the 2005 IUPAP report recognizing that both
terms should be officially recognized. Da is recognized as the symbol
for the dalton.

The test suite has been refactored to use the unittest package
provided by the python-2.7 and python-3.2 standard library. With
python-2.6 or python-3.{0,1}, unittest2 is required. The test suite
is run with::

   python setup.py test

Quantities no longer requires or uses Distribute or Setuptools.


The test framework has been refactored to use unittest exclusively
(requires unittest2 with  python-2.6, python-3.0, and python-3.1).
The test suite is now run in the source directory::

   python setup.py test

Added a defintion for the centipoise.

Bugs fixed
**********

* #11 incorrect definition for millidarcy
* #12 add definition of centipoise
* #13 add ddof keyword for std, var methods
* #16 add "latex" property to dimensionality for latex format strings
* #19 Astronomical Unit definition updated to reflect 2009 spec


-----
0.9.0
-----

Numpy-1.4.0 or later is also required, in order to properly handle
units during in-place arithmetic.

Physical constants are now instances of Quantity, rather than
UncertainQuantity. Development on UncertainQuantity is not as
advanced, so hopefully this change will make the constants package
more robust.

Bugs fixed
**********

* #1 use revolution/min instead of 1/min as definition of rpm
* #2 silently fail to import test runner if nose is not installed
* #4 remove the "jiffy", as there are conflicting definitions
  depending on (or even within a) discipline.
* #5 fix the definition of femtometer

-----
0.8.0
-----

Quantities now requires Python-2.6 or later. Python-3 is supported.

The fill method, and __setitem__ methods will now accept scalar
values in addition to quantities. If a scalar is passed, an
assumption is made that the change should only be applied to the
quantity's magnitude. The fill method will also accept a quantity
with incompatible units, and will overwrite the previous units.

The log and exp functions have been removed. Quantities will work
with numpy's version of these functions.

Quantities development has migrated from bzr/launchpad to
git/github. Please report problems to
http://github.com/python-quantities/python-quantities or visit the
mailing list at http://groups.google.com/group/python-quantities

Bugs fixed
**********

* #501563 incorrect conversion ratio for gills/pints
* #515314 don't memoize simplified, fixes set_default_units
* #526008 add definition of stone, used in UK to measure mass
* #525991 support specifying units using unicode
* #529266 fix conversion to gallons

-----
0.7.0
-----

A critical problem was identified, caused by a conflict between farad
and Faraday identified in quantities <0.7. F is commonly used as a
symbol for both the farad and Faraday's constant. This is problematic
for quanitities, which registers its units so they can be accessed
using a string corresponding to the unit name or symbol. In this
case, the Faraday constant was registered after the farad, so any
quantity that was expressed in terms of farads would be incorrectly
simplified using the Faraday constant. This problem has been fixed
and the registry has been improved to prevent overwriting previously
registered names or symbols. F is now reserved for the farad.

Addition and subtraction of quantities with different but compatible
units is now supported. Additionally, changes have been made in the
forthcoming numpy-1.4.0 to extend this compatibility to other ufuncs
as well.

Numpydoc, an external package developed to extend Sphinx for the
numpy documentation project, is now required to build quantities'
documentation.

Bugs fixed
**********

* #495181 epsilon_0 simplifies incorrectly
* #490323 bad spelling for polarizabilities
