httk.atomistic.models.species.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.models.species.view.SpeciesView(obj, **hints)[source]¶
Bases:
httk.atomistic.models.species.view_base.SpeciesViewBase,httk.atomistic.models.species.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.- Parameters:
obj (httk.atomistic.models.species.like.SpeciesLike) – The species-like object to present.
**hints (Any) – Backend-selection hints.
- unwrap()[source]¶
Return the raw object behind the backend.
- Returns:
The unwrapped source object.
- Return type:
Any