httk.atomistic.models.structure.plain_view¶
A view presenting any structure backend as an spglib-like (lattice, positions, numbers) triple.
Classes¶
A view presenting an underlying structure backend as a primitive triple. |
Module Contents¶
- class httk.atomistic.models.structure.plain_view.PlainStructureView(obj, **hints)[source]¶
Bases:
httk.atomistic.models.structure.view.StructureView,tupleA view presenting an underlying structure backend as a primitive triple.
This view is a genuine
(lattice, positions, numbers)tuple, built eagerly and immutable. Because the primitive representation carries only bare atomic numbers, every site’s species must be a single, unattached chemical element (seeSpecies.is_single_element); otherwise a TypeError is raised.- Parameters:
obj (httk.atomistic.models.structure.like.StructureLike) – The structure backend or source to present.
**hints (Any) – Backend-selection hints passed to structure coercion.