httk.atomistic.integrations.vasp.structure¶
Lazy VASP POSCAR structures backed by neutral httk payloads.
Classes¶
Load a VASP POSCAR structure lazily. |
Module Contents¶
- class httk.atomistic.integrations.vasp.structure.VASPStructure(obj, **hints)¶
Bases:
httk.atomistic.models.structure.backend.StructureBackendLoad a VASP POSCAR structure lazily.
This backend is explicitly constructed because a generic structure source should not silently claim every POSCAR path.
It is not registered in
backend_classes. Constructing it from a view whose unwrapped value is already aVASPStructurereturns that backend by identity. The payload’srawchannel preserves the source representation for byte-exact saving.- Parameters:
obj (Any) – A POSCAR path, neutral payload, or serializer-supported source.
**hints (Any) – Backend-selection hints.
- property payload: collections.abc.Mapping[str, Any]¶
Return the original, loaded, or synthesized neutral POSCAR payload.
- property comment: Any¶
Return the POSCAR comment, if present.
- property selective_dynamics: Any¶
Return selective-dynamics flags, if present.
- resolve()¶
Build and memoize the canonical structure from the POSCAR payload.
- Returns:
The resolved unit-cell structure.
- Return type:
- property cell: httk.atomistic.models.cell.cell.Cell¶
Return the resolved cell.
- property sites: httk.atomistic.models.sites.sites.Sites¶
Return the resolved reduced coordinates.
- property species: tuple[httk.atomistic.models.species.species.Species, Ellipsis]¶
Return the resolved distinct species.
- property site_moments: httk.atomistic.models.moments.backend.SiteMomentsBackend | None¶
Return resolved site moments, or
None.
- property charge: Any¶
Return the resolved structure charge, if present.
- unwrap()¶
Return the original POSCAR source.