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#
True if the optional parsimonious grammar track is importable. |
|
True for short path-like strings (avoid Path on multi-line blobs). |
|
Parse XYZ via grammar track (file path if exists, else text). |
|
Last |
|
Parse ORCA geometry-scan surface energies from output text. |
|
Load a |
|
Draw one loaded trajectory. This does not parse a file. |
|
Draw several loaded trajectories on one axes. This does not parse. |
|
Return suite package pins from rgpkgs config + env (soft on old hub). |
|
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 ENERGYas 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/.convelfile, or an ASE trajectory of another suffix..congoes through :mod:chemparseplot.parse.eon.con_io.fmaxcomes fromframe.frcwhen a forces section is present. The extxyz reader in- Mod:
chemparseplot.parse.trajectory.nebis 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.