httk.atomistic.models.protostructure.view

Lazy refined protostructure presentation view.

Classes

ProtostructureView

Present an existing refined protostructure lazily.

Module Contents

class httk.atomistic.models.protostructure.view.ProtostructureView(obj, **hints)[source]

Bases: httk.atomistic.models.protostructure.view_base.ProtostructureViewBase, httk.atomistic.models.protostructure.protostructure.Protostructure

Present an existing refined protostructure 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.

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

unwrap()[source]

Return the raw object behind the backend.

Returns:

The unwrapped source object.

Return type:

Any

unview()[source]

Return the refined protostructure as a standalone value.

Returns:

The protostructure value.

Return type:

httk.atomistic.models.protostructure.protostructure.Protostructure