finesse.utilities.units.SI

Overview

class finesse.utilities.units.SI(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

Enum defining common SI unit constant names. Look-up the corresponding values with the finesse.utilities.SI_MAP dictionary.

Examples

To get the constant for SI.MILLI simply look-up:

>>> SI_MAP[SI.MILLI]
1e-3