chemparseplot.parse.grammar.orca_text#
Grammar-oriented extractors for text-heavy ORCA output sections.
Prefer structured backends (OPI) when available. This module covers sections that remain text dumps: final single-point energies and Cartesian geometry blocks. Foundation for VPT2/IR/populations ports from wailord.
Added in version 1.9.9.
Module Contents#
Classes#
One atom in an ORCA Cartesian (Å) block. |
|
Structured slice of text ORCA output. |
Functions#
All |
|
Parse every |
|
Best-effort |
|
Summarize final energies and last Cartesian geometry from ORCA text. |
|
Read an ORCA |
Data#
API#
- chemparseplot.parse.grammar.orca_text._ENERGY_LINE_GRAMMAR_SRC = <Multiline-String>#
- chemparseplot.parse.grammar.orca_text._CART_BLOCK_GRAMMAR_SRC = <Multiline-String>#
- chemparseplot.parse.grammar.orca_text._ENERGY_LINE_RE#
‘compile(…)’
- chemparseplot.parse.grammar.orca_text._CART_BLOCK_RE#
‘compile(…)’
- chemparseplot.parse.grammar.orca_text._N_ATOMS_RE#
‘compile(…)’
- class chemparseplot.parse.grammar.orca_text.OrcaAtomCoord[source]#
One atom in an ORCA Cartesian (Å) block.
- class chemparseplot.parse.grammar.orca_text.OrcaTextSummary[source]#
Structured slice of text ORCA output.
- last_geometry: tuple[chemparseplot.parse.grammar.orca_text.OrcaAtomCoord, ...]#
None
- chemparseplot.parse.grammar.orca_text.extract_final_energies_hartree(text: str) list[float][source]#
All
FINAL SINGLE POINT ENERGYvalues in document order.Candidate lines are selected with a line scan; each is validated and extracted with a parsimonious line grammar.
- chemparseplot.parse.grammar.orca_text.extract_cartesian_angstrom_blocks(text: str) list[list[chemparseplot.parse.grammar.orca_text.OrcaAtomCoord]][source]#
Parse every
CARTESIAN COORDINATES (ANGSTROEM)block via grammar.
- chemparseplot.parse.grammar.orca_text.extract_n_atoms(text: str) int | None[source]#
Best-effort
Number of atomsfrom ORCA text (last occurrence).
- chemparseplot.parse.grammar.orca_text.parse_orca_text_summary(text: str) chemparseplot.parse.grammar.orca_text.OrcaTextSummary[source]#
Summarize final energies and last Cartesian geometry from ORCA text.
- chemparseplot.parse.grammar.orca_text.parse_orca_text_file(path: str | pathlib.Path) chemparseplot.parse.grammar.orca_text.OrcaTextSummary[source]#
Read an ORCA
.outand return :class:OrcaTextSummary.