Unyt

Latest version: v3.0.3

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

Scan your dependencies

Page 3 of 6

2.7.0

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

* The ``unyt_array`` and ``unyt_quantity`` classes now have a new, optional
``name`` attribute. The primary purpose of this attribute is to enable
automatic generation of matplotlib plot labels. The ``name`` attribute is
propagated through unit conversions and copies but is not propagated through
mathematical operations. See `PR 129
<https://github.com/yt-project/unyt/pull/129>`_ and the documentation for
details.
* Add support for the ``Neper`` and ``Bel`` units with logarithmic
dimensions. This includes support for the ``decibel`` unit. Note that
logarithmic units can only be used with other logarithmic units and must be
applied and stripped manually. See `PR 133
<https://github.com/yt-project/unyt/pull/133>`_ and `PR #134
<https://github.com/yt-project/unyt/pull/134>`_.
* Add support for the SI unit of inductance, ``H``. See `PR 135
<https://github.com/yt-project/unyt/pull/135>`_.
* Fix formatting of error message produced when raising a quantity to a power
with units. See `PR 131
<https://github.com/yt-project/unyt/pull/131>`_. Thank you to Lee Johnston
(l-johnston on GitHub) for all of the above contributions.
* Fix incorrect unit metadata when loading a pickled array saved by
``yt.units``. See `PR 137 <https://github.com/yt-project/unyt/pull/137>`_.

2.6.0

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

* Matplotlib support is no longer enabled by importing ``unyt``. Instead, it is
now necessary to use the ``unyt.matplotlib_support`` context manager in code
where you want unyt to automatically generate plot labels. Enabling Matplotlib
support by default in the previous release caused crashes in previously
working code for some users so we have decided to make the plotting support
optional. See the documentation for more details. We are sorry for introducing
a new feature that broke some user's code. See `PR 126
<https://github.com/yt-project/unyt/pull/126>`_. Thank you to Lee Johnston
(l-johnston on GitHub) for the contribution.
* Updated the contribution guide to include more details about setting up
multiple Python versions for the ``tox`` tests.

2.5.0

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

* Importing unyt now registers unyt with Matplotlib's interface for handling
units. See the `Matplotlib
<https://matplotlib.org/gallery/units/units_scatter.html>`_ and `unyt
<https://unyt.readthedocs.io/en/latest/usage.html#plotting-with-matplotlib>`_
documentation for more details. See `PR 122
<https://github.com/yt-project/unyt/pull/122>`_ and `PR #124
<https://github.com/yt-project/unyt/pull/124>`_. Thank you to Lee Johnston
(l-johnston on GitHub) for the contribution.
* Updated the LaTeX formatting of solar units so they do not get rendered
italicized. See `PR 120
<https://github.com/yt-project/unyt/pull/120>`_. Thank you to Josh Borrow
(JBorrow on GitHub) for the contribution.
* Reduce floating point round-off error when data are converted from integer to
float dtypes. See `PR 119 <https://github.com/yt-project/unyt/pull/119>`_.

2.4.1

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

* Add support for the latest releases of h5py, sympy, NumPy, and PyTest. See `PR
115 <https://github.com/yt-project/unyt/pull/115>`_.
* Fix the hash implementation so that identical units cannot have distinct
hashes. See `PR 114 <https://github.com/yt-project/unyt/pull/114>`_ and `PR
117 <https://github.com/yt-project/unyt/pull/114>`_. Thank you to Ben Kimock
(saethlin on GitHub) for the contribution.

2.4.0

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

* Improve performance for creating quantities or small arrays via multiplication
with a unit object. Creating an array or quantity from data that does not have
a numeric dtype will now raise ``UnitOperationError`` instead of
``UnitDtypeError``, which has been removed. See `PR 111
<https://github.com/yt-project/unyt/pull/111>`_.
* Comparing data with units that have different dimensions using the ``==`` and
``!=`` operators will no longer raise an error. Other comparison operators
will continue to raise errors. See `PR 109
<https://github.com/yt-project/unyt/pull/109>`_.
* Fixed a corner case in the implementation of ``clip``. See `PR 108
<https://github.com/yt-project/unyt/pull/108>`_. Thank you to Matthew Turk
(matthewturk on GitHub) for the contribution.
* Added ``%`` as a valid dimensionless unit with a value of ``0.01``, also
available under the name ``percent``. See `PR 106
<https://github.com/yt-project/unyt/pull/106>`_. Thank you to Thomas Hisch for
the contribution.
* Added ``bar`` to the default unit lookup table. See `PR 103
<https://github.com/yt-project/unyt/pull/103>`_. Thank you to Thomas Hisch
(thisch on GitHub) for the contribution.

2.3.1

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

* Added support for the ``clip`` ufunc added in NumPy 1.17. See `PR 102
<https://github.com/yt-project/unyt/pull/102>`_.

Page 3 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.