ElementDB#

class pyopenms.ElementDB#

Bases: object

Database of chemical elements and their isotopes. This is a singleton class. The elements are initialized with data from IUPAC tables.

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

getElement(name)

Overloaded function.

getInstance()

Returns the (immutable) singleton instance

hasElement(name)

Overloaded function.

getElement(name: str) → pyopenms.Element#
getElement(atomic_number: int) → pyopenms.Element

Overloaded function.

  1. getElement(name: str) -> pyopenms.Element

Get element by name or symbol (read-only reference into the immutable database)

  1. getElement(atomic_number: int) -> pyopenms.Element

Get element by atomic number (read-only reference into the immutable database)

static getInstance() → pyopenms.ElementDB#

Returns the (immutable) singleton instance

hasElement(name: str) → bool#
hasElement(atomic_number: int) → bool

Overloaded function.

  1. hasElement(name: str) -> bool

Check if element exists by name or symbol

  1. hasElement(atomic_number: int) -> bool

Check if element exists by atomic number