httk.atomistic.cell_class

Backend wrapping a Cell in the class representation.

Classes

CellClass

Backend for a cell backed by an actual Cell object.

Module Contents

class httk.atomistic.cell_class.CellClass(obj: httk.atomistic.cell.Cell, **hints: Any)[source]

Bases: httk.atomistic.cell_backend.CellBackend

Backend for a cell backed by an actual Cell object.

Its exact accessors delegate to the wrapped Cell (preserving its scale/unscaled_basis split), and unwrap returns that Cell.

property basis: httk.core.SurdVector[source]
property scale: httk.core.SurdScalar[source]
property unscaled_basis: httk.core.SurdVector[source]
unwrap() Any[source]

Return the most raw representation possible of this backend, i.e., if it uses a backend with an internal representaion - or if it can (possibly lossly) convert itself into a more raw representation that still would be recognized as a <Something>Like type, that representation will be returned. If this is not possible, the instance itself is returned.