We're happy to announce the release of unyt 3.0.1 ! This version (as compared with 2.9.5) brings a major improvement: the implementation of "array functions” (as defined by [NEP 18](https://numpy.org/neps/nep-0018-array-function-protocol.html)), bringing unyt more in line with astropy.units. In short, this means that a lot more of numpy functions are now unyt-aware and should behave more intuitively when passed unyt_array instances, including - np.dot - np.inner - np.histogram - np.concatenate - np.stack - functions from np.linalg and np.fft - np.isclose - and many more ! This also means that existing applications *may* break around these functions, as the return value suddendly have dimensionally accurate units they previously didn't, which is why the *major* version number was bumped from 2 to 3. Despite our efforts to make this release as stable as possible, some unintented breakage may still happen, so please report any supsicious behaviour you encounter. Another major feature in unyt 3.0 is first class support for unyt-aware dask arrays. See our documentation for details on how to use it https://unyt.readthedocs.io/en/latest/usage.html#working-with-dask-arrays Note that it isn't recommended to use unyt 3 with current yt (4.3.0), but the next yt release will be compatible with both unyt 2.9 and 3.0, so yt users will be allowed to switch back to the historical behaviour and transition more smoothly. For a more complete description of changes in this release, including bug fixes, see our changelog https://unyt.readthedocs.io/en/latest/history.html
participants (1)
-
Clément Robert