confirm_molecule

emmet.core.utils.confirm_molecule(mol)

Check that something that we expect to be a molecule is actually a Molecule object, and not a dictionary representation.

Parameters:
  • (Molecule) (mol)

  • mol (Molecule | dict)

Returns: