httk.atomistic.models.prototype.label

Eager prototype-label presentation view.

Classes

PrototypeLabel

Present a prototype as its eager httk label string.

Module Contents

class httk.atomistic.models.prototype.label.PrototypeLabel(obj, **hints)[source]

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

Present a prototype as its eager httk label string.

Any faithful render is the prototype label; the canonical prototype label is the one obtained from a normalizer-canonical prototype (for example one derived via canonical_asu). This view renders the label with no affine-normalizer pass.

Parameters:
property spacegroup

Return the standard-setting space group of the presented prototype.

property occupations

Return the class-partitioned occupations of the presented prototype.

property representative
property discriminator
unview()[source]

Return the presented prototype as a standalone value.

Returns:

The prototype value.

Return type:

httk.atomistic.models.prototype.prototype.Prototype

unwrap()[source]

Return the raw object behind the backend.

Returns:

The unwrapped source object.

Return type:

Any