httk.atomistic.models.cell.numeric_view¶
A view presenting any cell backend as a NumericCell (the plain-numpy presentation).
Classes¶
A view presenting an underlying cell backend as a |
Module Contents¶
- class httk.atomistic.models.cell.numeric_view.CellNumericView(obj, **hints)¶
Bases:
httk.atomistic.models.cell.view_base.CellViewBase,httk.atomistic.models.cell.numeric.NumericCellA view presenting an underlying cell backend as a
NumericCell.This view is a genuine
NumericCell, so it can be passed anywhere one is accepted. Its exactCellis built lazily from the backend on first access, preserving the scale/unscaled split. Like aNumericCellit requires numpy (raisingImportErrorotherwise).- Parameters:
obj (httk.atomistic.models.cell.like.CellLike) – The cell-like object to present.
**hints (Any) – Backend-selection hints.
- unwrap()¶
Return the raw object behind the backend.
- Returns:
The unwrapped source object.
- Return type:
Any
- unview()¶
Return this presentation as a standalone numeric cell.
- Returns:
The plain-numpy presentation.
- Return type: