Convenient constructors¶
- class samson.DataModel.Quantity.electronvolt(*args, **kwargs)¶
Bases:
Overloaded function.
electronvolt(v: float) -> samson.DataModel.Quantity.unitsElectronvolt
Constructs the physical unit ‘electronvolt’ with a given value v
electronvolt(q: samson.DataModel.Quantity.unitsElectronvolt) -> samson.DataModel.Quantity.unitsElectronvolt
Constructs the physical unit ‘electronvolt’ from a given physical unit u
- class samson.DataModel.Quantity.eV(*args, **kwargs)¶
Bases:
Overloaded function.
eV(v: float) -> samson.DataModel.Quantity.unitsElectronvolt
Constructs the physical unit ‘eV’ with a given value v
eV(q: samson.DataModel.Quantity.unitsElectronvolt) -> samson.DataModel.Quantity.unitsElectronvolt
Constructs the physical unit ‘eV’ from a given physical unit u