httk.atomistic.models.cell.view

A view presenting any cell backend as a Cell (the class representation).

Classes

CellView

A view presenting an underlying cell backend as a Cell.

Module Contents

class httk.atomistic.models.cell.view.CellView(obj, **hints)[source]

Bases: httk.atomistic.models.cell.view_base.CellViewBase, httk.atomistic.models.cell.cell.Cell

A view presenting an underlying cell backend as a Cell.

This view is a genuine Cell, so it can be passed anywhere a Cell is accepted. Its state is built lazily on first access from the backend.

Parameters:
unwrap()[source]

Return the raw object behind the backend.

Returns:

The unwrapped source object.

Return type:

Any

unview()[source]

Return this presentation as a standalone cell.

Returns:

The exact cell representation.

Return type:

httk.atomistic.models.cell.cell.Cell