httk.atomistic.models.structure.asu_view

A lazy view presenting any structure as its asymmetric unit.

Classes

ASUStructureView

Present an underlying structure backend as a lazy ASUStructure.

Module Contents

class httk.atomistic.models.structure.asu_view.ASUStructureView(obj, *, setting=None, standard=None, transform=None, tolerance=None, immutable_id=_METADATA_UNSET, last_modified=_METADATA_UNSET, **hints)

Bases: httk.atomistic.models.structure.view.StructureView, httk.atomistic.models.structure.asu.ASUStructure

Present an underlying structure backend as a lazy ASUStructure.

Resolver-backed and non-native sources are retained without recognition until the first asymmetric-unit access. The view then publishes the complete validated ASU state on itself, so its inherited API remains the genuine ASUStructure interface. Pickling retains the source backend and view options; once resolved, it also retains the validated derived ASU state while preserving that backend as the source returned by unwrap().

Parameters:
resolve()

Resolve and return the complete standalone asymmetric unit.

unwrap()

Return the original source without resolving it.

unview()

Return the resolved standalone asymmetric-unit structure.

property sites: Any

Expose the representative sites retained by the asymmetric-unit view.

property species_at_sites: tuple[str, Ellipsis]

Expose species names for the representative sites retained by the view.

property assemblies: Any

Expose correlations among the retained domain sites.

property asu: httk.atomistic.models.structure.asu.FundamentalDomainStructure

Expose this view as its own resolved fundamental domain.