httk.atomistic.models.prototype.view

Lazy refined prototype presentation view.

Classes

PrototypeView

Present an existing refined prototype lazily.

Module Contents

class httk.atomistic.models.prototype.view.PrototypeView(obj, **hints)

Bases: httk.atomistic.models.prototype.view_base.PrototypeViewBase, httk.atomistic.models.prototype.prototype.Prototype

Present an existing refined prototype lazily.

Raw structures and plain labels require a bare view; refinement must be constructed explicitly with a representative or discriminator. A bare projection view retaining a refined source can recover that source here.

Parameters:
  • obj (Any) – Existing refined classification or assigned refined classification.

  • **hints (Any) – Reserved hints; recognition arguments are rejected.

unwrap()

Return the raw object behind the backend.

Returns:

The unwrapped source object.

Return type:

Any

unview()

Return the refined prototype as a standalone value.

Returns:

The prototype value.

Return type:

httk.atomistic.models.prototype.prototype.Prototype