httk.atomistic.models.protopattern.view¶
Lazy protopattern erasure and presentation view.
Classes¶
Present a lazy standard-setting protopattern view. |
Module Contents¶
- class httk.atomistic.models.protopattern.view.ProtopatternView(obj, **hints)[source]¶
Bases:
httk.atomistic.models.protopattern.view_base.ProtopatternViewBase,httk.atomistic.models.protopattern.protopattern.ProtopatternPresent a lazy standard-setting protopattern view.
Sources may be an existing protopattern, a protostructure (real species erased to anonymous classes), or a fundamental-domain/structure source recognized and discretized. Erasure is deferred until the first field access.
- Parameters:
obj (Any) – The protopattern-like or structure-like source.
**hints (Any) – Backend-selection hints.
- unwrap()[source]¶
Return the raw object behind the backend.
- Returns:
The unwrapped source object.
- Return type:
Any
- unview()[source]¶
Return the erased protopattern as a standalone value.
- Returns:
The protopattern value.
- Return type:
httk.atomistic.models.protopattern.protopattern.Protopattern