httk.atomistic.models.sites.plain_view

A view presenting any sites backend as a raw Nx3 tuple of reduced coordinates.

Classes

PlainSitesView

A view presenting an underlying sites backend as a raw Nx3 matrix of floats.

Module Contents

class httk.atomistic.models.sites.plain_view.PlainSitesView(obj, **hints)[source]

Bases: httk.atomistic.models.sites.view_base.SitesViewBase, tuple

A view presenting an underlying sites backend as a raw Nx3 matrix of floats.

This view is a genuine tuple of reduced-coordinate rows (rendered to floats from the exact reduced_coords), built eagerly and immutable.

Parameters:
unwrap()[source]

Return the raw object behind the backend.

Returns:

The unwrapped source object.

Return type:

Any

unview()[source]

Return the presented coordinates as a plain tuple.

Returns:

The reduced-coordinate rows.

Return type:

tuple[tuple[float, Ellipsis], Ellipsis]