# SPDX-FileCopyrightText: 2023-present Rohit Goswami <rog32@hi.is>
#
# SPDX-License-Identifier: MIT
"""Typed records for NEB / saddle data.
This module holds the canonical definitions. chemparseplot imports its
parsers' records from here.
.. versionchanged:: 1.14.0
The module no longer tries ``chemparseplot.basetypes`` first. Only the
0.x chemparseplot releases have it, so the import loaded chemparseplot
and then failed.
"""
from __future__ import annotations
import datetime
from dataclasses import dataclass, field
import numpy as np
@dataclass(frozen=True, slots=True)
@dataclass(frozen=True, slots=True)
@dataclass
@dataclass
@dataclass
@dataclass
[docs]
class SaddleMeasure:
[docs]
tot_time: float = field(default_factory=lambda: datetime.timedelta(0).total_seconds())
[docs]
saddle_energy: float = np.nan
[docs]
saddle_fmax: float = np.nan
[docs]
method: str = "not run"
[docs]
dimer_trans: str = "n/a"
[docs]
init_energy: float = np.nan
[docs]
barrier: float = np.nan
[docs]
termination_status: str = "not set"
__all__ = [
"DimerOpt",
"MolGeom",
"SaddleMeasure",
"SpinID",
"nebiter",
"nebpath",
]