molfoundry.AtomId#
- class molfoundry.AtomId[source]#
Bases:
TSObjectIdentifies a chemical element and exposes its data from the shared
Atomtable.Construct one by symbol or by atomic number:
carbon = AtomId.bySymbol("C") carbon = AtomId.byId(6) print(carbon.protons, carbon.valenceElectrons, carbon.orbitalNames)
AtomIdis also whatVertex.atomIdreturns. An AtomId that comes from a non-atom vertex (e.g. an electron), an unknown symbol, or an unknown atomic number is invalid:validisFalse,idis available, and every element property raisesLogicError.- static byId(id)[source]#
Look up an element by atomic number / id (e.g.
6-> carbon). Invalid if no element has that atomic number.