httk.atomistic.models.crystalpattern.api

The minimal canonical anonymous-structure interface.

Classes

CrystalPatternAPI

The common interface for dummy-species structures and prototypes.

Module Contents

class httk.atomistic.models.crystalpattern.api.CrystalPatternAPI[source]

Bases: abc.ABC

The common interface for dummy-species structures and prototypes.

property cell: httk.atomistic.models.cell.cell.Cell[source]
Abstractmethod:

Return the structure cell.

property sites: httk.atomistic.models.sites.sites.Sites[source]
Abstractmethod:

Return the reduced sites.

property species: tuple[httk.atomistic.models.species.species.Species, Ellipsis][source]
Abstractmethod:

Return the distinct dummy species.

property species_at_sites: tuple[str, Ellipsis][source]
Abstractmethod:

Return dummy species names in site order.

property coordinate_precision: fractions.Fraction | None[source]

Return the reduced-coordinate precision, if known.

property basis_precision: fractions.Fraction | None[source]

Return the cell-basis precision, if known.

property anonymous_formula: httk.atomistic.models.formula.formulapattern_view.FormulapatternView[source]

Return the canonical anonymous formula at the represented site scale.

property is_canonical: bool[source]

Return whether site counts assign consecutive canonical anonymous labels.