SiteOccupation
- class ase2sprkkr.sprkkr.occupations.SiteOccupation(site)[source]
Proxy for the Occupation of a Site that raises a RuntimeError before any mutating operation when the site still has symmetry (i.e. shares its SiteType with other sites). Call
site.break_symmetry()first and then mutate freely.Inherits read delegation and the transparent __class__ / isinstance() behaviour from SitePropertyProxy; only mutating operations are overridden here.
Class hierarchy
Constructor
- set(dct, for_mesh=None)[source]
- Parameters:
dct (Dict[ase2sprkkr.sprkkr.atomic_types.AtomicType | str, float] | List[Tuple[ase2sprkkr.sprkkr.atomic_types.AtomicType | str, float]])
- Return type:
None
- property as_dict