ElementDB#
- class pyopenms.ElementDB#
Bases:
objectDatabase 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.
Returns the (immutable) singleton instance
hasElement(name)Overloaded function.
- getElement(name: str) pyopenms.Element#
- getElement(atomic_number: int) pyopenms.Element
Overloaded function.
getElement(name: str) -> pyopenms.Element
Get element by name or symbol (read-only reference into the immutable database)
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.
hasElement(name: str) -> bool
Check if element exists by name or symbol
hasElement(atomic_number: int) -> bool
Check if element exists by atomic number