ElementDB

class pyopenms.ElementDB

Bases: object

Cython implementation of _ElementDB

Original C++ documentation is available here

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

addElement(self, name, symbol, an, ...)

getElement

Overload:

hasElement

Overload:

addElement(self, name: bytes, symbol: bytes, an: int, abundance: Dict[int, float], mass: Dict[int, float], replace_existing: bool) None
getElement()

Overload:

getElement(self, name: Union[bytes, str, String]) Element

Overload:

getElement(self, atomic_number: int) Element
hasElement()

Overload:

hasElement(self, name: Union[bytes, str, String]) bool

Returns true if the db contains an element with the given name, else false

Overload:

hasElement(self, atomic_number: int) bool

Returns true if the db contains an element with the given atomic_number, else false