httk.atomistic.models.sites.plain¶
Backend wrapping a raw Nx3 matrix of reduced coordinates.
Classes¶
Backend for sites backed by a raw Nx3 list or tuple of numbers (or any Nx3 vector-like). |
Module Contents¶
- class httk.atomistic.models.sites.plain.PlainSites(obj, **hints)[source]¶
Bases:
httk.atomistic.models.sites.backend.SitesBackendBackend for sites backed by a raw Nx3 list or tuple of numbers (or any Nx3 vector-like).
The native representation is preserved verbatim (one site per row); the exact rational
FracVectorreduced_coordsare built lazily and cached, andunwrapreturns the original raw object.- Parameters:
obj (Any) – The raw reduced-coordinate representation.
**hints (Any) – Backend-selection hints.
- property reduced_coords: httk.core.FracVector[source]¶
Return the reduced coordinates in the canonical representation.
- Returns:
The exact reduced coordinates.
- Return type: