qrunch.chemistry.molecule.atom

Module with definition of atom from the periodic table.

Classes

Atom

Represents an Atom.

class Atom

Bases: object

Represents an Atom.

__init__(symbol_or_number: str | int, /, *, label: str | None = None) None

Initialize the Atom class.

Parameters:
  • symbol_or_number (str | int) – The atomic symbol or the atom number of the atom.

  • label (str | None) – Optional label to give the atom.

Return type:

None

property label: str

Get the label of the atom.

property number: int

Get the atomic number of the atom.

property symbol: str

Get the chemical symbol of the atom.