chemparseplot.api#

Stable public library entry points for chemparseplot.

Prefer this module for new consumers (cookbooks, wailord, notebooks).

Representative in-process path (parse → typed result):

.. code-block:: python

from chemparseplot.api import extract_orca_geomscan_energy

dist_bohr, energy_Eh = extract_orca_geomscan_energy(orca_out_text, "Actual Energy")
# dist_bohr, energy_Eh are pint Quantities (bohr, hartree)

Heavy plot stacks are re-exported lazily so bare installs stay light.

Suite pins/config: use rgpycrumbs.api (shared rgpkgs TOML) — this package does not invent ~/.config/chemparseplot.

.. versionadded:: 1.9.8 .. versionchanged:: 1.9.9 Expose ORCA geomscan energy parse as the stable library path. .. versionchanged:: 1.9.11 Expand re-exports (SurfaceFitConfig, plot helpers, basetypes); hub suite_pins.

Module Contents#

Functions#

grammar_available

True if the optional parsimonious grammar track is importable.

_looks_like_path

True for short path-like strings (avoid Path on multi-line blobs).

parse_xyz

Parse XYZ via grammar track (file path if exists, else text).

parse_orca_final_energy

Last FINAL SINGLE POINT ENERGY as a hartree Quantity.

extract_orca_geomscan_energy

Parse ORCA geometry-scan surface energies from output text.

load_trajectory

Load a .con / .convel file, or an ASE trajectory of another suffix.

plot_con_overview

Draw one loaded trajectory. This does not parse a file.

plot_con_overlay

Draw several loaded trajectories on one axes. This does not parse.

suite_pins

Return suite package pins from rgpkgs config + env (soft on old hub).

__getattr__

Lazy optional re-exports (plot stack / units / ORCA analysis).

Data#

API#

chemparseplot.api.__all__#

[‘ENERGY_UNITS’, ‘Q_’, ‘SurfaceFitConfig’, ‘chemfiles_available’, ‘convert_energy_magnitude’, ‘energ…

chemparseplot.api.grammar_available() → bool[source]#

True if the optional parsimonious grammar track is importable.

chemparseplot.api._looks_like_path(s: str) → bool[source]#

True for short path-like strings (avoid Path on multi-line blobs).

chemparseplot.api.parse_xyz(path_or_text: str)[source]#

Parse XYZ via grammar track (file path if exists, else text).

Requires chemparseplot[grammar].

chemparseplot.api.parse_orca_final_energy(path_or_text: str)[source]#

Last FINAL SINGLE POINT ENERGY as a hartree Quantity.

Grammar track; requires chemparseplot[grammar].

chemparseplot.api.extract_orca_geomscan_energy(data: str, energy_type: str = 'Actual Energy') → tuple[chemparseplot.units.Q_, chemparseplot.units.Q_][source]#

Parse ORCA geometry-scan surface energies from output text.

In-process library path: text → typed (distance, energy) pint Quantities in Bohr and Hartree (ORCA defaults).

chemparseplot.api.load_trajectory(path: str)[source]#

Load a .con / .convel file, or an ASE trajectory of another suffix.

.con goes through :mod:chemparseplot.parse.eon.con_io. fmax comes from frame.frc when a forces section is present. The extxyz reader in

Mod:

chemparseplot.parse.trajectory.neb is a different function.

chemparseplot.api.plot_con_overview(*args, **kwargs)[source]#

Draw one loaded trajectory. This does not parse a file.

chemparseplot.api.plot_con_overlay(*args, **kwargs)[source]#

Draw several loaded trajectories on one axes. This does not parse.

chemparseplot.api.suite_pins() → dict[str, str][source]#

Return suite package pins from rgpkgs config + env (soft on old hub).

chemparseplot.api.__getattr__(name: str) → Any[source]#

Lazy optional re-exports (plot stack / units / ORCA analysis).