httk.atomistic.structure_simple_view¶
A view presenting any structure backend as a Structure (the Simple representation).
Classes¶
A view presenting an underlying structure backend as a |
Module Contents¶
- class httk.atomistic.structure_simple_view.StructureSimpleView(obj: httk.atomistic.structure_like.StructureLike, **hints: Any)[source]¶
Bases:
httk.atomistic.structure_view.StructureView,httk.atomistic.structure.StructureA view presenting an underlying structure backend as a
Structure.This view is a genuine
Structure, so it can be passed anywhere a Structure is accepted. Its quartet is built eagerly from the backend on construction.- 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.