chemparseplot.parse.orca.populations#

ORCA Mulliken / Loewdin atomic population charges.

Text path ports wailord single_population_analysis. When OPI is installed and property JSON is available, prefer

meth:

opi.output.core.Output.get_mulliken /

meth:

opi.output.core.Output.get_loewdin.

.. versionadded:: 1.9.11

Module Contents#

Classes#

AtomicCharge

One atomic charge (optional spin) from a population analysis.

Functions#

_as_text

_parse_text

_is_float

_parse_opi

parse_orca_populations

Parse Mulliken or Loewdin atomic charges.

Data#

API#

chemparseplot.parse.orca.populations.__all__#

[‘AtomicCharge’, ‘parse_orca_populations’]

chemparseplot.parse.orca.populations.PopKind#

None

chemparseplot.parse.orca.populations._Backend#

None

chemparseplot.parse.orca.populations._HDR#

None

class chemparseplot.parse.orca.populations.AtomicCharge[source]#

One atomic charge (optional spin) from a population analysis.

atom_index: int#

None

symbol: str#

None

charge: float#

None

spin: float | None#

None

method: str#

‘Mulliken’

chemparseplot.parse.orca.populations._as_text(path_or_text: str | pathlib.Path) → str[source]#
chemparseplot.parse.orca.populations._parse_text(text: str, kind: chemparseplot.parse.orca.populations.PopKind) → list[chemparseplot.parse.orca.populations.AtomicCharge][source]#
chemparseplot.parse.orca.populations._is_float(s: str) → bool[source]#
chemparseplot.parse.orca.populations._parse_opi(basename: str, working_dir: pathlib.Path, kind: chemparseplot.parse.orca.populations.PopKind) → list[chemparseplot.parse.orca.populations.AtomicCharge][source]#
chemparseplot.parse.orca.populations.parse_orca_populations(path_or_text: str | pathlib.Path, kind: chemparseplot.parse.orca.populations.PopKind = 'Mulliken', *, backend: chemparseplot.parse.orca.populations._Backend = 'auto', basename: str | None = None, working_dir: str | pathlib.Path | None = None) → list[chemparseplot.parse.orca.populations.AtomicCharge][source]#

Parse Mulliken or Loewdin atomic charges.

Prefer OPI property JSON when basename is set and opi is available; otherwise parse the text .out tables (wailord-compatible).