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.2 #220

Closed
wants to merge 1 commit into from
Closed

Conversation

pyup-bot
Copy link
Contributor

This PR updates unyt from 2.4.0 to 2.7.2.

Changelog

2.7.2

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

* The ``unyt.returns`` and ``unyt.accepts`` decorators now work correctly for
functions that accept or return data with dimensionless units. See `PR 146
<https://github.com/yt-project/unyt/pull/146>`_. Thank you to Simon Schopferer
(simfinite on GitHub) for the initial bug report and fix.
* Data used in the tests are packaged with the source distribution and
``unyt.test()`` is now itself run as part of unyt's continuous integration
tests. See `PR 149 <https://github.com/yt-project/unyt/pull/149>`_ and `PR
150 <https://github.com/yt-project/unyt/pull/150>`_. Thank you to Miguel de
Val-Borro (migueldvb on GitHub) for the initial bug report and fix.
* The ``degC`` and ``degF`` units now render as ``°C`` and ``°F`` by default,
``°C`` and ``°F`` are now recognized as valid unit names as well. Thank you to
Lee Johnston (l-johnston on GitHub) for the contribution.
* Use a more canonical representation of the micro symbol when printing units
with the micro prefix, avoiding issues with displaying unit names in
Matplotlib plot labels. See `PR 153
<https://github.com/yt-project/unyt/pull/153>`_. Thank you to Matthew Turk
(matthewturk on GitHub) for the bug report and fix.
* Add more alternative spellings for solar units. See `PR 155
<https://github.com/yt-project/unyt/pull/155>`_. Thank you to Clément Robert
(neutrinoceros on GitHub) for the initial bug report.

2.7.1

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

* Fix compatibility with `unyt_array` subclasses that do not have the new
``name`` argument in their initializer. See `PR 140
<https://github.com/yt-project/unyt/pull/140>`_.
* Fix an issue where custom units added to a unit registry were not restored
correctly when reloading a unit registry from a JSON or pickle
representation. See `PR 140 <https://github.com/yt-project/unyt/pull/140>`_.

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 Jun 29, 2020
@pyup-bot
Copy link
Contributor Author

pyup-bot commented Oct 7, 2020

Closing this in favor of #262

@pyup-bot pyup-bot closed this Oct 7, 2020
@berceanu berceanu deleted the pyup-update-unyt-2.4.0-to-2.7.2 branch October 7, 2020 12:58
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