httk.atomistic.models.bareprototype.label_string

Backend wrapping a raw canonical prototype label string.

Classes

BarePrototypeLabelString

Wrap a canonical prototype label held as a plain string.

Module Contents

class httk.atomistic.models.bareprototype.label_string.BarePrototypeLabelString(obj, **hints)[source]

Bases: httk.atomistic.models.bareprototype.backend.BarePrototypeBackend

Wrap a canonical prototype label held as a plain string.

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

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

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

kind = 'bare_prototype'
property spacegroup

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

property occupations

Return the class-partitioned occupations of the parsed label.

unwrap()[source]

Return the original label text.