Getting started
User Guide
sisl.viz
Advanced usage
sisl.geom
sisl.physics
sisl.mixing
sisl.utils
sisl.io
sisl.typing
Development
Extras
Factor that takes fr to the units of to
fr (str) – starting unit
to (str) – ending unit
opts (Mapping[str, float] | None) – controls whether the unit conversion is in powers or fractional units
tbl (Mapping[str, Mapping[str, float | str]]) – dictionary of units (default to the global table)
float
Examples
>>> unit_convert("kg","g") 1000.0 >>> unit_convert("eV","J") 1.60217733e-19