Unyt

Latest version: v3.0.3

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

Scan your dependencies

Page 4 of 6

2.3.0

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

* Added ``unyt.dimensions.accepts`` and ``unyt.dimensions.returns``, decorators
that can be used to ensure that data passed into a decorated function has
units that are dimensionally consistent with the function's expected
inputs. See `PR 98 <https://github.com/yt-project/unyt/pull/94>`_. Thank you
to Andrei Berceanu (berceanu on GitHub) for the contribution.
* Added ``unyt.allclose_units`` and improved documentation for writing tests for
code that uses ``unyt``. This is a wrapper for ``numpy.allclose`` that also
checks the units of the input arrays. See `PR 94
<https://github.com/yt-project/unyt/pull/94>`_. Thank you to Andrei Berceanu
(berceanu on GitHub) for the contribution.

2.2.2

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

* Fix erroneous conversions of E&M units to their "native" unit system,
for example, converting Gauss to CGS units would return Tesla and converting
Tesla to MKS units would return Gauss. See `PR 96
<https://github.com/yt-project/unyt/pull/96>`_.

2.2.1

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

* Add support for loading JSON unit registries saved by ``yt.units``.
See `PR 93 <https://github.com/yt-project/unyt/pull/93>`_.
* Correct the value of the ``light_year`` unit.
See `PR 93 <https://github.com/yt-project/unyt/pull/93>`_.
* It is now possible to define a ``UnitSystem`` object with a quantity.
See `PR 86 <https://github.com/yt-project/unyt/pull/86>`_.
* Incorrect units for Planck units have been fixed.
See `PR 85 <https://github.com/yt-project/unyt/pull/85>`_. Thank you to
Nathan Musoke (musoke on GitHub) for the contribution.
* Updated value of Newton's constant to latest CODATA value.
See `PR 84 <https://github.com/yt-project/unyt/pull/84>`_.

2.2.0

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

* Several performance optimizations. This includes a slight change to the behavior
of MKS/CGS E&M unit conversions that makes the conversion rules slightly more relaxed.
See `PR 82 <https://github.com/yt-project/unyt/pull/82>`_.

2.1.1

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

* Fixed an issue with restoring unit registries from JSON output. See `PR 81
<https://github.com/yt-project/unyt/pull/81>`_.

2.1.0

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

This release includes a few minor new features and bugfixes for the 2.0.0 release.

* Added support for the matmul ` operator. See `PR 80
<https://github.com/yt-project/unyt/pull/80>`_.
* Allow defining unit systems using ``Unit`` instances instead of string unit
names. See `PR 71 <https://github.com/yt-project/unyt/pull/71>`_. Thank you
to Josh Borrow (JBorrow on GitHub) for the contribution.
* Fix incorrect behavior when ``uhstack`` is called with the ``axis``
argument. See `PR 73 <https://github.com/yt-project/unyt/pull/73>`_.
* Add ``"rsun"``, ``"lsun"``, and ``"au"`` as alternate spellings for the
``"Rsun"``, ``"Lsun"``, and ``"AU"`` units. See `PR 77
<https://github.com/yt-project/unyt/pull/77>`_.
* Improvements for working with code unit systems. See `PR 78
<https://github.com/yt-project/unyt/pull/78>`_.
* Reduce impact of floating point round-off noise on unit comparisons. See `PR
79 <https://github.com/yt-project/unyt/pull/79>`_.

Page 4 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.