httk.atomistic.models.species.view

A view presenting any species backend as a Species (the class representation).

Classes

SpeciesView

A view presenting an underlying species backend as a Species.

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.Species

A 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 full Species validation applied at that point.

Parameters:
unwrap()[source]

Return the raw object behind the backend.

Returns:

The unwrapped source object.

Return type:

Any

unview()[source]

Return this presentation as standalone species.

Returns:

The exact species representation.

Return type:

httk.atomistic.models.species.species.Species