httk.atomistic.sites_api¶
The minimal canonical sites interface for httk-atomistic.
Classes¶
Abstract base class for the canonical sites interface. |
Module Contents¶
- class httk.atomistic.sites_api.SitesAPI[source]¶
Bases:
abc.ABCAbstract base class for the canonical sites interface.
It declares the single
reduced_coordsaccessor (the exact Nx3 rationalFracVectorof reduced coordinates) that every sites backend produces from its own native representation and every sites view builds its presentation from. This is the single interchange format; there is no pairwise conversion between backends.- property reduced_coords: httk.core.FracVector[source]¶
- Abstractmethod:
- property precision: fractions.Fraction | None[source]¶
How precisely the coordinates were stated, in fractional units, or
None.Fractional, not a length: reduced coordinates are dimensionless and a
Siteshas no cell to convert with.cartesian_precision()does the conversion, where the cell is known.Concrete rather than abstract, so a backend with no source of precision inherits
Noneinstead of breaking.