httk.atomistic.models.protostructure.label

Eager protostructure-label presentation view.

Classes

ProtostructureLabel

Present a protostructure as its eager httk label string.

Module Contents

class httk.atomistic.models.protostructure.label.ProtostructureLabel(obj, **hints)

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

Present a protostructure as its eager httk label string.

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

The unsuffixed part is the httk prototype label of the erased anonymous prototype (classes ordered by Wyckoff letters, not by element as AFLOW does), followed by : and the class species names in group order.

Parameters:
property spacegroup

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

property occupations

Return the occupied Wyckoff positions of the presented protostructure.

property representative
property discriminator
unview()

Return the presented protostructure as a standalone value.

Returns:

The protostructure value.

Return type:

httk.atomistic.models.protostructure.protostructure.Protostructure

unwrap()

Return the raw object behind the backend.

Returns:

The unwrapped source object.

Return type:

Any