httk.atomistic.models.formula.formulatype_view

Eager anonymous-formula presentation view.

Classes

FormulatypeView

Present a complete composition as an eager canonical anonymous formula.

Module Contents

class httk.atomistic.models.formula.formulatype_view.FormulatypeView(obj, **hints)[source]

Bases: httk.atomistic.models.formula.view_base.ChemicalFormulaViewBase, httk.atomistic.models.formula.formulatype.Formulatype

Present a complete composition as an eager canonical anonymous formula.

The canonical class name is FormulatypeView; the legacy AnonymousFormulaView name remains available as an alias.

Parameters:
property amounts

Return the presented amounts using anonymous labels.

property uncertainties

Return the presented amount precisions using anonymous labels.

property complete

Return whether the presented composition is complete.

property exact

Return whether the presented amounts are exact.

property normalized

Return whether the presented composition is normalized.

property normalization_status

Return the presented composition’s normalization status.

property diagnostics

Return diagnostics associated with the presented composition.

property is_anonymous

Return whether this formula uses anonymous labels.

unview()[source]

Return the presented formula as a standalone value.

Returns:

The canonical anonymous formula value.

Return type:

httk.atomistic.models.formula.formulatype.Formulatype

unwrap()[source]

Return the raw object behind the backend.

Returns:

The unwrapped source object.

Return type:

Any