httk.atomistic.cell_params_view¶
A view presenting any cell backend as cell parameters (a, b, c, alpha, beta, gamma).
Classes¶
A view presenting an underlying cell backend as cell parameters. |
Module Contents¶
- class httk.atomistic.cell_params_view.CellParamsView(obj: httk.atomistic.cell_like.CellLike, **hints: Any)[source]¶
Bases:
httk.atomistic.cell_view.CellView,tupleA view presenting an underlying cell backend as cell parameters.
This view is a genuine flat 6-tuple
(a, b, c, alpha, beta, gamma)with the angles in degrees, built eagerly and immutable, with the elements also available as the named propertiesa/b/c/alpha/beta/gamma. Parameters carry no orientation, so converting a cell to parameters is lossy: reconstructing a cell from this view reproduces the lengths, angles, and volume, but not the original cell-vector orientation.- unwrap() Any[source]¶
Return the most raw representation possible of this view, 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.