httk.atomistic.models.formula.record

Backend projecting a normalized composition storage record.

Classes

RecordComposition

Read a composition from a NormalizedCompositionRecord.

Module Contents

class httk.atomistic.models.formula.record.RecordComposition(obj, **hints)[source]

Bases: httk.atomistic.models.formula.backend.ChemicalFormulaBackend

Read a composition from a NormalizedCompositionRecord.

Parameters:
property amounts: tuple[tuple[str, fractions.Fraction], ...][source]

Return the stored elemental amounts.

property uncertainties: tuple[tuple[str, fractions.Fraction | None], ...][source]

Return the stored amount precisions.

property complete: bool[source]

Return whether the stored composition is complete.

property exact: bool[source]

Return whether the stored amounts are exact.

property normalized: bool[source]

Return whether the stored composition is normalized.

property normalization_status: str[source]

Return the stored composition’s normalization status.

property diagnostics: tuple[httk.atomistic.models.formula.diagnostics.CompositionDiagnostic, ...][source]

Return diagnostics stored with the composition.

unwrap()[source]

Return the original normalized-composition record.