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.
Submodules¶
- unyt.array module
unyt_array
unyt_array.convert_to_units()
unyt_array.convert_to_base()
unyt_array.convert_to_cgs()
unyt_array.convert_to_mks()
unyt_array.in_units()
unyt_array.to()
unyt_array.to_value()
unyt_array.in_base()
unyt_array.in_cgs()
unyt_array.in_mks()
unyt_array.convert_to_equivalent()
unyt_array.to_equivalent()
unyt_array.list_equivalencies()
unyt_array.has_equivalent()
unyt_array.ndarray_view()
unyt_array.to_ndarray()
unyt_array.argsort()
unyt_array.from_astropy()
unyt_array.to_astropy()
unyt_array.from_pint()
unyt_array.to_pint()
unyt_array.from_string()
unyt_array.to_string()
unyt_array.write_hdf5()
unyt_array.from_hdf5()
unyt_array.value
unyt_array.v
unyt_array.ndview
unyt_array.d
unyt_array.unit_quantity
unyt_array.uq
unyt_array.unit_array
unyt_array.ua
unyt_array.copy()
unyt_array.dot()
unyt_array.take()
unyt_quantity
uconcatenate()
ucross()
uintersect1d()
uunion1d()
unorm()
udot()
uvstack()
uhstack()
ustack()
loadtxt()
savetxt()
allclose_units()
- unyt.dask_array module
- unyt.dimensions module
mass
length
time
temperature
angle
current_mks
luminous_intensity
dimensionless
logarithmic
base_dimensions
solid_angle
velocity
acceleration
jerk
snap
crackle
pop
area
volume
momentum
force
tension
pressure
energy
power
flux
specific_flux
number_density
density
angular_momentum
specific_angular_momentum
specific_energy
count_flux
count_intensity
luminous_flux
luminance
charge_cgs
current_cgs
electric_field_cgs
magnetic_field_cgs
electric_potential_cgs
resistance_cgs
magnetic_flux_cgs
charge
charge_mks
electric_field
electric_field_mks
magnetic_field
magnetic_field_mks
electric_potential
electric_potential_mks
resistance
resistance_mks
capacitance
capacitance_mks
magnetic_flux
magnetic_flux_mks
inductance
inductance_mks
derived_dimensions
dimensions
em_dimensions
accepts()
returns()
- unyt.equivalencies module
- unyt.exceptions module
- unyt.mpl_interface module
- unyt.physical_constants module
- unyt.testing module
- unyt.unit_object module
Unit
Unit.is_positive
Unit.is_commutative
Unit.is_number
Unit.latex_repr
Unit.units
Unit.copy()
Unit.same_dimensions_as()
Unit.is_dimensionless
Unit.is_code_unit
Unit.list_equivalencies()
Unit.has_equivalent()
Unit.get_base_equivalent()
Unit.get_cgs_equivalent()
Unit.get_mks_equivalent()
Unit.get_conversion_factor()
Unit.latex_representation()
Unit.as_coeff_unit()
Unit.simplify()
Unit.expr
Unit.is_atomic
Unit.base_value
Unit.base_offset
Unit.dimensions
Unit.registry
Unit.is_Unit
define_unit()
- unyt.unit_registry module
- unyt.unit_symbols module
- unyt.unit_systems module