httk.atomistic.species_class_view¶
A view presenting any species backend as a Species (the class representation).
Classes¶
A view presenting an underlying species backend as a |
Module Contents¶
- class httk.atomistic.species_class_view.SpeciesClassView(obj: httk.atomistic.species_like.SpeciesLike, **hints: Any)[source]¶
Bases:
httk.atomistic.species_view.SpeciesView,httk.atomistic.species.SpeciesA view presenting an underlying species backend as a
Species.This view is a genuine frozen
Species, so it can be passed anywhere a Species is accepted. Its fields are built eagerly from the backend on construction, with fullSpeciesvalidation applied at that point.- 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.