BaseMoveSpec

class jaxrens.cli.schema.moves.BaseMoveSpec(*, step_size=0.1, weight=1.0, adaptation_warmup=100, target_acceptance=0.5, name=None)[source]

Bases: BaseModel

Fields shared by every move type.

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

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

property move_type: str

Backward-compatible alias for the type discriminator field.

to_move_config()[source]

Produce the library MoveConfig dataclass.

Return type:

MoveConfig

to_descriptor(*, n_atoms=None, cell_cfg=None, symbol_map=None)[source]

Produce the MoveKernel for build_mwg.

Parameters:
  • n_atoms (int | None) – Number of atoms, derived from the resolved initial positions at resolver time. Simple moves (random_walk, galilean, …) ignore this. Cell-move specs (volume, shear, stretch) and single_atom_sweep use it to populate kernel_kwargs["n_atoms"].

  • cell_cfg (CellSpec | None) – CellSpec carrying cell-geometry constraints. Cell-move specs use it to populate max_volume_per_atom, min_volume_per_atom, min_aspect_ratio, and flat_V_prior in kernel_kwargs. Simple moves ignore it.

  • symbol_map (dict[int, str] | None) – {type_code: element_symbol} for the resolved system, as carried by ResolvedInit. Only species-scoped specs (gmc with species) need it; all others ignore it.

Return type:

MoveKernel