Convenience constructors#

class samson.SBQuantity.electronvolt(*args, **kwargs)#

Bases:

Overloaded function.

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

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

  1. electronvolt(q: samson.SBQuantity.unitsElectronvolt) -> samson.SBQuantity.unitsElectronvolt

Constructs the physical unit ‘electronvolt’ from the given physical unit u

class samson.SBQuantity.eV(*args, **kwargs)#

Bases:

Overloaded function.

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

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

  1. eV(q: samson.SBQuantity.unitsElectronvolt) -> samson.SBQuantity.unitsElectronvolt

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