Publications
User Guide
Reference documentation
sisl
sisl.geom
sisl.physics
sisl.io
sisl.constant
sisl.unit
sisl.unit.siesta
sisl.shape
sisl.utils
sisl.unit.
unit_convert
Factor that takes ‘fr’ to the units of ‘to’.
fr (str) – starting unit
to (str) – ending unit
opts (dict, optional) – controls whether the unit conversion is in powers or fractional units
tbl (dict, optional) – dictionary of units (default to the global table)
Examples
>>> unit_convert('kg','g') 1000.0 >>> unit_convert('eV','J') 1.60217733e-19