httk.atomistic.models.formula.anonymous_view

Eager anonymous-formula presentation view.

Classes

AnonymousFormulaView

Present a complete composition as an eager canonical anonymous formula.

Module Contents

class httk.atomistic.models.formula.anonymous_view.AnonymousFormulaView(obj, **hints)[source]

Bases: httk.atomistic.models.formula.view_base.ChemicalFormulaViewBase, httk.atomistic.models.formula.anonymous.AnonymousFormula

Present a complete composition as an eager canonical anonymous formula.

Parameters:
property amounts[source]

Return the presented amounts using anonymous labels.

property uncertainties[source]

Return the presented amount precisions using anonymous labels.

property complete[source]

Return whether the presented composition is complete.

property exact[source]

Return whether the presented amounts are exact.

property normalized[source]

Return whether the presented composition is normalized.

property normalization_status[source]

Return the presented composition’s normalization status.

property diagnostics[source]

Return diagnostics associated with the presented composition.

property is_anonymous[source]

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.anonymous.AnonymousFormula

unwrap()[source]

Return the raw object behind the backend.

Returns:

The unwrapped source object.

Return type:

Any