chemparseplot.parse.orca.freq#
ORCA vibrational frequencies and IR spectrum parsing.
Text path ports the wailord orcaVis.vib_freq / ir_spec extractors.
When orca-pi (import name opi) is installed and a job basename is
available, IR modes can also be read via :meth:opi.output.core.Output.get_ir
(official OPI IR grepping / IrMode).
.. versionadded:: 1.9.11
Module Contents#
Classes#
One harmonic vibrational frequency line from ORCA. |
|
One IR spectrum row (freq + intensity + dipole derivatives). |
Functions#
Parse the |
|
Parse one ORCA IR row: mode, frequency, epsilon, intensity, dipole. |
|
Parse a shorter row: mode, frequency, intensity, then the dipole. |
|
Parse IR SPECTRUM (text) or OPI |
Data#
API#
- chemparseplot.parse.orca.freq.__all__#
[‘IrSpectrumMode’, ‘VibMode’, ‘parse_orca_ir_spectrum’, ‘parse_orca_vibrational_frequencies’]
- chemparseplot.parse.orca.freq._Backend#
None
- chemparseplot.parse.orca.freq._VIB_HDR#
‘compile(…)’
- chemparseplot.parse.orca.freq._IR_HDR#
‘compile(…)’
- chemparseplot.parse.orca.freq._VIB_LINE#
‘compile(…)’
- class chemparseplot.parse.orca.freq.VibMode[source]#
One harmonic vibrational frequency line from ORCA.
- class chemparseplot.parse.orca.freq.IrSpectrumMode[source]#
One IR spectrum row (freq + intensity + dipole derivatives).
- chemparseplot.parse.orca.freq._PATH_PROBE_MAX#
4096
- chemparseplot.parse.orca.freq._VIB_HEADER_GAP#
20
- chemparseplot.parse.orca.freq._IR_HEADER_GAP#
30
- chemparseplot.parse.orca.freq._IR_ORCA_SCALARS#
4
- chemparseplot.parse.orca.freq._IR_FALLBACK_FIELDS#
6
- chemparseplot.parse.orca.freq._as_text(path_or_text: str | pathlib.Path) str[source]#
- chemparseplot.parse.orca.freq.parse_orca_vibrational_frequencies(path_or_text: str | pathlib.Path) list[chemparseplot.parse.orca.freq.VibMode][source]#
Parse the
VIBRATIONAL FREQUENCIESblock from ORCA text output.
- chemparseplot.parse.orca.freq._ir_mode_from_orca_line(raw_line: str) chemparseplot.parse.orca.freq.IrSpectrumMode[source]#
Parse one ORCA IR row: mode, frequency, epsilon, intensity, dipole.
This is the column order of
opi.output.ir_mode.IrMode.from_string. The text parser does not import opi, so a machine without that package still reads the table.
- chemparseplot.parse.orca.freq._ir_mode_from_tokens(raw_line: str) chemparseplot.parse.orca.freq.IrSpectrumMode[source]#
Parse a shorter row: mode, frequency, intensity, then the dipole.
- chemparseplot.parse.orca.freq._parse_ir_text(text: str) list[chemparseplot.parse.orca.freq.IrSpectrumMode][source]#
- chemparseplot.parse.orca.freq._parse_ir_opi(basename: str, working_dir: pathlib.Path) list[chemparseplot.parse.orca.freq.IrSpectrumMode][source]#
- chemparseplot.parse.orca.freq.parse_orca_ir_spectrum(path_or_text: str | pathlib.Path, *, backend: chemparseplot.parse.orca.freq._Backend = 'auto', basename: str | None = None, working_dir: str | pathlib.Path | None = None) list[chemparseplot.parse.orca.freq.IrSpectrumMode][source]#
Parse IR SPECTRUM (text) or OPI
Output.get_irwhen configured.