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.array.loadtxt()
unyt.array.savetxt()
unyt.test()
unyt.array.uconcatenate()
unyt.array.ucross()
unyt.array.udot()
unyt.array.uhstack()
unyt.array.uintersect1d()
unyt.array.unorm()
unyt.array.ustack()
unyt.array.uunion1d()
unyt.array.uvstack()
unyt.array.unyt_array
unyt.array.unyt_quantity
unyt.unit_object.define_unit()
unyt.unit_object.Unit
unyt.unit_registry.UnitRegistry
unyt.unit_systems.UnitSystem
unyt.testing.assert_allclose_units()
unyt.array.allclose_units()
unyt.dimensions.accepts()
unyt.dimensions.returns()
-
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.