Convenient constructors¶
-
class
samson.DataModel.Quantity.
electronvolt
(*args, **kwargs)¶ 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)¶ 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