Convenient constructors¶

class samson.DataModel.Quantity.electronvolt(*args, **kwargs)¶

Overloaded function.

  1. electronvolt(v: float) -> samson.DataModel.Quantity.unitsElectronvolt

Constructs the physical unit ‘electronvolt’ with a given value v

  1. 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.

  1. eV(v: float) -> samson.DataModel.Quantity.unitsElectronvolt

Constructs the physical unit ‘eV’ with a given value v

  1. eV(q: samson.DataModel.Quantity.unitsElectronvolt) -> samson.DataModel.Quantity.unitsElectronvolt

Constructs the physical unit ‘eV’ from a given physical unit u