unyt package

The unyt package.

Note that the symbols defined in unyt.physical_constants and unyt.unit_symbols are importable from this module. For example:

>>> from unyt import km, clight
>>> print((km/clight).to('ns'))
3335.64095198152 ns

In addition, the following functions and classes are importable from the top-level unyt namespace:

unyt.test()[source]

Execute the unit tests on an installed copy of unyt.

Note that this function requires pytest to run. If pytest is not installed this function will raise ImportError.