units

libra_py.units.length_converter(inp_units, out_units)[source]

Length units conversion factor

Parameters
  • inp_units (int) – defines the input units

  • out_units (int) – defines the output units

Note

Both inp_units and out_units are encoded as follows:

  • 0 - atomic units (Bohrs)

  • 1 - Angstroms

Returns

the length units conversion factor

Return type

double