Element#

class pyopenms.Element#

Bases: object

Cython implementation of _Element

Original C++ documentation is available here

__init__()#

Overload:

__init__(self) None

Overload:

__init__(self, in_0: Element) None

Overload:

__init__(self, name: bytes | str | String, symbol: bytes | str | String, atomic_number: int, average_weight: float, mono_weight: float, isotopes: IsotopeDistribution) None

Methods

__init__

Overload:

getAtomicNumber(self)

Returns the unique atomic number

getAverageWeight(self)

Returns the average weight of the element

getIsotopeDistribution(self)

Returns the isotope distribution of the element

getMonoWeight(self)

Returns the mono isotopic weight of the element

getName(self)

Returns the name of the element

getSymbol(self)

Returns symbol of the element

setAtomicNumber(self, atomic_number)

Sets unique atomic number

setAverageWeight(self, weight)

Sets the average weight of the element

setIsotopeDistribution(self, isotopes)

Sets the isotope distribution of the element

setMonoWeight(self, weight)

Sets the mono isotopic weight of the element

setName(self, name)

Sets the name of the element

setSymbol(self, symbol)

Sets symbol of the element

getAtomicNumber(self) int#

Returns the unique atomic number

getAverageWeight(self) float#

Returns the average weight of the element

getIsotopeDistribution(self) IsotopeDistribution#

Returns the isotope distribution of the element

getMonoWeight(self) float#

Returns the mono isotopic weight of the element

getName(self) bytes | str | String#

Returns the name of the element

getSymbol(self) bytes | str | String#

Returns symbol of the element

setAtomicNumber(self, atomic_number: int) None#

Sets unique atomic number

setAverageWeight(self, weight: float) None#

Sets the average weight of the element

setIsotopeDistribution(self, isotopes: IsotopeDistribution) None#

Sets the isotope distribution of the element

setMonoWeight(self, weight: float) None#

Sets the mono isotopic weight of the element

setName(self, name: bytes | str | String) None#

Sets the name of the element

setSymbol(self, symbol: bytes | str | String) None#

Sets symbol of the element