httk.atomistic.models.structure.unitcell_view¶
A view presenting any structure backend as a UnitcellStructure (the Unitcell representation).
Classes¶
A view presenting an underlying structure backend as a |
Module Contents¶
- class httk.atomistic.models.structure.unitcell_view.UnitcellStructureView(obj, **hints)[source]¶
Bases:
httk.atomistic.models.structure.view.StructureView,httk.atomistic.models.structure.unitcell.UnitcellStructureA view presenting an underlying structure backend as a
UnitcellStructure.This view is a genuine
UnitcellStructure, so it can be passed anywhere a UnitcellStructure is accepted. Each component is normalized lazily on first access. For an ASU-backed view, accessingcellorspeciesnever triggers expansion.An ASU backend is expanded when unit-cell sites, species-at-sites, moments, or assemblies are requested. Assembly correlations that cannot be mapped from the fundamental domain to the full cell raise an error.
- Parameters:
obj (httk.atomistic.models.structure.like.StructureLike) – The structure backend or source to present.
**hints (Any) – Backend-selection and metadata options passed to construction.
- Raises:
httk.core.optimade.entries.IncompleteOptimadeResourceError – If the source declares a coordinate span that cannot be projected as a native unit cell.
- property site_moments: httk.atomistic.models.moments.backend.SiteMomentsBackend | None[source]¶
Expose the site’s magnetic moments.
- property charge: fractions.Fraction | None[source]¶
Expose the explicitly assigned charge.
- unwrap()[source]¶
Return the raw value wrapped by the backend.
- Returns:
The original source value.
- Return type:
Any
- unview()[source]¶
Materialize this presentation as a standalone unit-cell structure.
- Returns:
The exact unit-cell structure represented by this view.
- Return type:
- property assemblies: tuple[httk.atomistic.composition.Assembly, Ellipsis] | None[source]¶
Expose site correlations in the presented unit cell.
- property chemical_formula_descriptive: str | None[source]¶
Expose the optional descriptive chemical formula.
- property site_coordinate_span_description: str | None[source]¶
Expose the optional coordinate-span description.
- property space_group_symbol_hermann_mauguin: str | None[source]¶
Expose the optional Hermann–Mauguin symbol.
- property space_group_symbol_hermann_mauguin_extended: str | None[source]¶
Expose the optional extended Hermann–Mauguin symbol.