deMonPy.demonnano.output
Back to DeMonNanoPy API Reference
Description
deMonNano output parser: deMon.out and deMon.mol into a results dictionary.
Source file: deMonPy/demonnano/output.py
Classes
read_output (IOread)
Largest module of the package; every reader is guarded by safe_parse / assert_flags / exclude_flags.
Methods
| Method | Signature | Description |
|---|---|---|
__init__ |
__init__(properties=["energy"], workdir="./", output="deMon.out", flags=set(), ase_obj=True, type_calculation={}, ignore_parse_errors=True) |
Initialize the parser with requested properties and flags. |
read_file |
read_file() |
Load the main output file into memory; raises OutputParseError if missing. |
read_basics |
read_basics() |
Parse global properties (energy, timing, basis info). |
read_energy |
read_energy() |
Parse the total-energy block. |
get_energies |
get_energies(line, criteria="DFTB total energy", start_search=False) |
Extract energy values matching a criterion. |
read_geometry |
read_geometry(output="deMon.mol", is_charges=False, velocities=False, keep=1) |
Parse the final geometry (and optional charges/velocities) into an ASE Atoms object. |
read_ci |
read_ci() |
Parse CI states and charges (CI runs only). |
read_tddftb |
read_tddftb() |
Parse t-DFTB spectra/results. |
read_freq |
read_freq() |
Parse vibrational frequencies and ZPE. |
read_AOM_matrix |
read_AOM_matrix(...) |
Parse the AOM matrix block from debug output. |
read_debug |
read_debug(extract_data=False, keep_matrix=-1) |
Parse the debug section (matrices, diagnostics). |
read_pbc |
read_pbc(...) |
Parse periodic (PBC) data: k-points, eigenvalues, kpts coordinates. |
read_print |
read_print() |
Parse the PRINT section: MO energies/occupancies, tensors. |
read_errors |
read_errors(...) |
Collect error messages from the output. |
parse_tensors |
parse_tensors() |
Parse tensor blocks (dipole, polarizability). |
Private helpers
_add_error_read_ptmd_read_opt_read_ptmc_read_md_read_neb
Functions
| Function | Signature | Description |
|---|---|---|
convert_float |
convert_float(val, safe=False) |
Convert a string to float, optionally returning None instead of raising. |