httk.atomistic.models.bareprototype.view¶
Lazy prototype recognition and presentation view.
Classes¶
Recognize or project a lazy Wyckoff-only classification. |
Module Contents¶
- class httk.atomistic.models.bareprototype.view.BarePrototypeView(obj, **hints)[source]¶
Bases:
httk.atomistic.models.bareprototype.view_base.BarePrototypeViewBase,httk.atomistic.models.bareprototype.bareprototype.BarePrototypeRecognize or project a lazy Wyckoff-only classification.
Existing bare values, refined classifications, plain labels, and structure-like sources are accepted. Recognition hints are retained until first field access. Projecting a refined source preserves it for view round-trips;
unview()materializes a standalone bare value without geometrical refinement.- Parameters:
obj (Any) – Classification or structure-like source.
**hints (Any) – Backend-selection and recognition hints.
- unwrap()[source]¶
Return the raw object behind the backend.
- Returns:
The unwrapped source object.
- Return type:
Any
- unview()[source]¶
Return the recognized prototype as a standalone value.
- Returns:
The prototype value.
- Return type:
httk.atomistic.models.bareprototype.bareprototype.BarePrototype