Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update unyt to 2.7.0 #148

Closed
wants to merge 1 commit into from
Closed

Conversation

pyup-bot
Copy link
Contributor

@pyup-bot pyup-bot commented Feb 6, 2020

This PR updates unyt from 2.4.0 to 2.7.0.

Changelog

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.htmlplotting-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.
Links

@pyup-bot pyup-bot mentioned this pull request Feb 6, 2020
@pyup-bot
Copy link
Contributor Author

Closing this in favor of #154

@pyup-bot pyup-bot closed this Feb 17, 2020
@berceanu berceanu deleted the pyup-update-unyt-2.4.0-to-2.7.0 branch February 17, 2020 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant