CellSpec

class jaxrens.cli.schema.cell.CellSpec(*, max_volume_per_atom=10000.0, min_volume_per_atom=1.0, initial_min_volume_per_atom=None, min_aspect_ratio=0.8, flat_V_prior=False)[source]

Bases: BaseModel

Cell-geometry constraint parameters.

These values are threaded automatically into the kernel_kwargs of volume, shear, and stretch move descriptors by the resolver. They are the single source of truth for cell-geometry bounds; the individual move specs no longer carry copies of these fields.

Parameters:
  • max_volume_per_atom (float)

  • min_volume_per_atom (float)

  • initial_min_volume_per_atom (float | None)

  • min_aspect_ratio (float)

  • flat_V_prior (bool)

model_config = {'extra': 'forbid', 'frozen': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

property effective_initial_min_volume_per_atom: float

Resolved lower floor for the initial volume draw.

Returns initial_min_volume_per_atom when set, otherwise falls back to min_volume_per_atom.