chemparseplot.parse.eon.con_trajectory#

Load a CON or ASE trajectory for the public plot helpers.

.con and .convel go through :mod:chemparseplot.parse.eon.con_io. Other suffixes stay on ase.io.read. This module does not open a corpus.

Module Contents#

Classes#

ConTrajectory

One loaded trajectory.

Functions#

Data#

API#

chemparseplot.parse.eon.con_trajectory.__all__#

[‘ConTrajectory’, ‘load_trajectory’]

class chemparseplot.parse.eon.con_trajectory.ConTrajectory[source]#

One loaded trajectory.

energies are per-frame totals in eV (NaN when the frame has none). table is a polars frame whose fmax column comes from frame.frc when a forces section is present. frames are ConFrame objects for source == "con" and ASE Atoms otherwise.

path: pathlib.Path#

None

source: str#

None

n_frames: int#

None

energies: list[float]#

None

table: Any#

None

frames: list[Any]#

None

chemparseplot.parse.eon.con_trajectory._fmax_from_forces(forces: Any) → float | None[source]#
chemparseplot.parse.eon.con_trajectory._energy_or_nan(value: Any) → float[source]#
chemparseplot.parse.eon.con_trajectory._ase_energy(atoms: Any) → float[source]#
chemparseplot.parse.eon.con_trajectory._ase_fmax(atoms: Any) → float | None[source]#
chemparseplot.parse.eon.con_trajectory._table(energies: list[float], fmax: list[float | None])[source]#
chemparseplot.parse.eon.con_trajectory._load_con(path: pathlib.Path) → chemparseplot.parse.eon.con_trajectory.ConTrajectory[source]#
chemparseplot.parse.eon.con_trajectory._load_ase(path: pathlib.Path) → chemparseplot.parse.eon.con_trajectory.ConTrajectory[source]#
chemparseplot.parse.eon.con_trajectory.load_trajectory(path: str | pathlib.Path) → chemparseplot.parse.eon.con_trajectory.ConTrajectory[source]#

Load path for plotting.

.con and .convel use :func:chemparseplot.parse.eon.con_io.read_con_frames. Every other suffix uses ase.io.read. fmax is the maximum per-atom force norm from frame.frc when that column exists.