httk.atomistic.numeric_unitcell_structure_backend¶
Backend for numeric unitcell structure presentations.
Classes¶
Backend recognizing the plain-numpy structure quartet. |
Module Contents¶
- class httk.atomistic.numeric_unitcell_structure_backend.NumericUnitcellStructureBackend(obj: Any, **hints: Any)[source]¶
Bases:
httk.atomistic.structure_backend.StructureBackendBackend recognizing the plain-numpy structure quartet.
The wrapped object must expose
NumericCell/NumericSitesvalues throughcell/sitesand the usualspecies/species_at_sitesattributes. Its exact quartet is taken from anexactStructurewhen available, then from the component presentations’exactvalues. If neither component carries an exact value, the numericbasisandreduced_coordsarrays are passed through the vector family intoCellandSites. That last route is exact embedding of the floats: their binary float64 values, rather than their decimal spellings, become the exact values.- property cell: httk.atomistic.cell.Cell[source]¶
The exact cell quartet component.
- property sites: httk.atomistic.sites.Sites[source]¶
The exact sites quartet component.
- property species: tuple[httk.atomistic.species.Species, Ellipsis][source]¶
The exact structure’s distinct species.