exatomic.formula module
Simple Formula
- class exatomic.formula.SimpleFormula(data)[source]
Bases:
Series
A simple way of storing a chemical formula that contains no structural information. Element symbols are in alphabetical order (e.g. ‘B’, ‘C’, ‘Cl’, ‘Uuo’)
>>> water = SimpleFormula('H(2)O(1)') >>> naoh = SimpleFormula('Na(1)O(1)H(1)') >>> naoh SimpleFormula('H(1)Na(1)O(1)')
- property mass
Returns: mass (float): Mass (in atomic units) of the associated formula