rgpycrumbs.uma._io¶
Load structures through ASE or readcon. No local format parsers.
Attributes¶
Functions¶
|
Return an ASE |
|
|
|
Resolve (charge, spin multiplicity) for atoms. |
Module Contents¶
- rgpycrumbs.uma._io.load_atoms(path: pathlib.Path)[source]¶
Return an ASE
Atomsfor path..con/.convelgo through readcon (same aseon con_splitter). Everything else isase.io.read. Both come from the PEP 723 /uv runenvironment, orensure_importwhen called as a library.
- rgpycrumbs.uma._io.charge_spin_of(atoms, *, charge: int | None = None, spin: int | None = None)[source]¶
Resolve (charge, spin multiplicity) for atoms.
Explicit arguments win over
atoms.info. A spin that neither the caller noratoms.infoprovides is derived from electron parity (odd electron count is a doublet), and any provided spin is validated against that parity instead of silently selecting an unphysical PES.