chemparseplot.parse.eon.con_io#
Public readcon-backed CON/convel helpers for eOn parsers.
All .con / .convel I/O in chemparseplot should go through this module so
metadata-native energies (readcon>=0.7) stay on one code path. readcon
remains an optional extra (chemparseplot[neb]); import errors surface only
when these helpers are called.
Added in version 1.8.1.
Module Contents#
Functions#
Return True when path looks like an eOn CON/convel file. |
|
Read all frames from a CON/convel file as |
|
Read all frames from a CON/convel file as ASE |
|
Read the first frame of a CON file as an ASE |
|
Return a |
|
Write |
|
Convert ASE |
Data#
API#
- chemparseplot.parse.eon.con_io.__all__#
[‘CON_SUFFIXES’, ‘frame_with_energy’, ‘is_con_path’, ‘read_con_as_ase’, ‘read_con_frames’, ‘read_fir…
- chemparseplot.parse.eon.con_io.CON_SUFFIXES#
(‘.con’, ‘.convel’)
- chemparseplot.parse.eon.con_io.is_con_path(path: str | pathlib.Path) bool[source]#
Return True when path looks like an eOn CON/convel file.
- chemparseplot.parse.eon.con_io.read_con_frames(path: str | pathlib.Path) list[Any][source]#
Read all frames from a CON/convel file as
readcon.ConFrameobjects.
- chemparseplot.parse.eon.con_io.read_con_as_ase(path: str | pathlib.Path) list[source]#
Read all frames from a CON/convel file as ASE
Atomsobjects.
- chemparseplot.parse.eon.con_io.read_first_atoms(path: str | pathlib.Path)[source]#
Read the first frame of a CON file as an ASE
Atomsobject.
- chemparseplot.parse.eon.con_io.frame_with_energy(frame: Any, energy: float) Any[source]#
Return a
ConFramecopy with per-frame totalenergyset (eV).Uses
ConFrame.set_energywhen available (readcon>=0.7) so metadata stays schema-valid; falls back to reconstructing the frame with string metadata.
- chemparseplot.parse.eon.con_io.write_con_frames(path: str | pathlib.Path, frames: collections.abc.Sequence[Any]) pathlib.Path[source]#
Write
ConFrameobjects to path viareadcon.write_con.
- chemparseplot.parse.eon.con_io.write_atoms_as_con(path: str | pathlib.Path, atoms_list: collections.abc.Sequence[Any], *, energies: collections.abc.Sequence[float | None] | None = None) pathlib.Path[source]#
Convert ASE
AtomstoConFrameand write a CON file.Optional energies (eV) are attached per frame with :func:
frame_with_energy.