nvalchemi.csp.SpaceGroupPolicy#

pydantic model nvalchemi.csp.SpaceGroupPolicy[source]#

Immutable fixed or weighted-sampling rule for crystal space groups.

Construct policies with fixed() or sampled(). A sampled policy stores an optional replacement prior and crystallographic filters; its compatibility depends on the operation count required by a packing configuration or a standalone draw() call. Policies can be saved and restored with Pydantic’s JSON text, JSON-mode dictionary, or Python-mode dictionary serialization routes. Restored model data accepts canonical decimal string keys for probabilities and serialized CrystalSystem values; convenience sampling helpers continue to require integer keys and enum values.

field mode: Literal['fixed', 'sampled'] [Required]#
field group: int | None = None#
Constraints:
  • strict = True

field probabilities: Mapping[int, float] | None = None#
field crystal_system: CrystalSystem | None = None#
field sohncke_only: bool = False#
Constraints:
  • strict = True