httk.atomistic.models.prototype.derived¶
Lazy adapters from assigned structures to anonymous prototypes.
Classes¶
Erase assigned Protostructure occupations to anonymous labels lazily. |
Module Contents¶
- class httk.atomistic.models.prototype.derived.DerivedPrototype(obj, **hints)[source]¶
Bases:
httk.atomistic.models.prototype.backend.PrototypeBackendErase assigned Protostructure occupations to anonymous labels lazily.
The source discriminator is preserved verbatim. An exact retained representative is converted to an anonymous fundamental-domain template without approximating its geometry.
- kind = 'prototype'¶
- property spacegroup¶
- property occupations¶
- property representative¶
Return an optional retained exact representative.
- property discriminator¶
Return an optional geometrical-class discriminator.
- unwrap()[source]¶
Return the most raw representation possible of this backend, i.e., if it uses a backend with an internal representaion - or if it can (possibly lossly) convert itself into a more raw representation that still would be recognized as a <Something>Like type, that representation will be returned. If this is not possible, the instance itself is returned.
- Returns:
The backend’s most raw available representation.
- Return type:
Any