ElementDB

class pyopenms.ElementDB

Bases: object

Cython implementation of _ElementDB

Documentation is available at http://www.openms.de/current_doxygen/html/classOpenMS_1_1ElementDB.html

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

addElement

Cython signature: void addElement(libcpp_string name, libcpp_string symbol, unsigned int an, libcpp_map[unsigned int,double] abundance, libcpp_map[unsigned int,double] mass, bool replace_existing)

getElement

  • Cython signature: const Element * getElement(const String & name)

hasElement

  • Cython signature: bool hasElement(const String & name)

addElement()

Cython signature: void addElement(libcpp_string name, libcpp_string symbol, unsigned int an, libcpp_map[unsigned int,double] abundance, libcpp_map[unsigned int,double] mass, bool replace_existing)

getElement()
  • Cython signature: const Element * getElement(const String & name)

  • Cython signature: const Element * getElement(unsigned int atomic_number)

hasElement()
  • Cython signature: bool hasElement(const String & name) Returns true if the db contains an element with the given name, else false

  • Cython signature: bool hasElement(unsigned int atomic_number) Returns true if the db contains an element with the given atomic_number, else false