httk.atomistic.models.moments.crystalaxis_view

Crystal-axis class view for site moments.

Classes

CrystalAxisSiteMomentsView

A lazy crystal-axis site-moments presentation with an eagerly checked frame hint.

Module Contents

class httk.atomistic.models.moments.crystalaxis_view.CrystalAxisSiteMomentsView(obj, *, cell=None, **hints)[source]

Bases: httk.atomistic.models.moments.view_base.SiteMomentsViewBase, httk.atomistic.models.moments.crystalaxis.CrystalAxisSiteMoments

A lazy crystal-axis site-moments presentation with an eagerly checked frame hint.

unview()[source]

Return the view’s presented representation as a plain, non-View instance.

Concrete views that mimic a value type override this to shed the httk wrapper; the result may alias the view’s storage (no copy is promised). The default raises TypeError, which is the correct behavior for views that only adapt an interface and have no faithful standalone value.

Returns:

The presented value as a plain, non-View instance.

Raises:

TypeError – If this interface-only view has no standalone plain value.

Return type:

httk.atomistic.models.moments.crystalaxis.CrystalAxisSiteMoments