httk.atomistic.models.moments.cartesian_view¶
Cartesian class view for site moments.
Classes¶
A lazy Cartesian site-moments presentation of any site-moments backend. |
Module Contents¶
- class httk.atomistic.models.moments.cartesian_view.CartesianSiteMomentsView(obj, **hints)[source]¶
Bases:
httk.atomistic.models.moments.view_base.SiteMomentsViewBase,httk.atomistic.models.moments.cartesian.CartesianSiteMomentsA lazy Cartesian site-moments presentation of any site-moments backend.
- 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.cartesian.CartesianSiteMoments