httk.atomistic.models.formula.wyckoff¶
Formula bridge for Wyckoff-multiplicity-based backends.
Classes¶
Represent the canonical composition of a Wyckoff-multiplicity-based backend. |
Module Contents¶
- class httk.atomistic.models.formula.wyckoff.WyckoffComposition(obj, **hints)¶
Bases:
httk.atomistic.models.formula.backend.ChemicalFormulaBackendRepresent the canonical composition of a Wyckoff-multiplicity-based backend.
Structuretype and prototype inputs use anonymous labels; protostructure inputs retain their real elemental composition at the standard conventional-cell scale.
- Parameters:
obj (Any) – The structuretype or protostructure to present.
**hints (Any) – Backend-selection hints.
- kind = 'wyckoff'¶
- property amounts: tuple[tuple[str, fractions.Fraction], Ellipsis]¶
Return the canonical composition amounts.
- property uncertainties: tuple[tuple[str, fractions.Fraction | None], Ellipsis]¶
Return the composition amount precisions.
- property diagnostics¶
Return non-fatal diagnostics associated with the composition.
- unwrap()¶
Return the raw object behind the Wyckoff-composition backend.
- Returns:
The unwrapped source object.
- Return type:
Any