httk.atomistic.models.protopattern.label_string

Backend wrapping a raw canonical protopattern label string.

Classes

ProtopatternLabelString

Wrap a canonical protopattern label held as a plain string.

Module Contents

class httk.atomistic.models.protopattern.label_string.ProtopatternLabelString(obj, **hints)[source]

Bases: httk.atomistic.models.protopattern.backend.ProtopatternBackend

Wrap a canonical protopattern label held as a plain string.

The string must be a canonical unsuffixed protopattern label (no : species suffix); anything else is declined. Parsing is eager, so the wrapped value is validated at adoption.

Parameters:
  • obj (str) – The canonical protopattern label text.

  • **hints (Any) – Backend-selection hints.

kind = 'protopattern'[source]
property spacegroup[source]

Return the standard-setting space group of the parsed label.

property occupations[source]

Return the class-partitioned occupations of the parsed label.

unwrap()[source]

Return the original label text.