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:
BaseModelFields 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].
- to_descriptor(*, n_atoms=None, cell_cfg=None, symbol_map=None)[source]¶
Produce the
MoveKernelforbuild_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) –
CellSpeccarrying cell-geometry constraints. Cell-move specs use it to populatemax_volume_per_atom,min_volume_per_atom,min_aspect_ratio, andflat_V_priorinkernel_kwargs. Simple moves ignore it.symbol_map (dict[int, str] | None) –
{type_code: element_symbol}for the resolved system, as carried byResolvedInit. Only species-scoped specs (gmcwithspecies) need it; all others ignore it.
- Return type: