PyRETIS TOML configuration schema¶
This document lists the TOML keys read by pyretis run, grouped by section.
The scheduler-backed configuration is parsed by
pyretis.simulation.setup.setup_config.
[runner]¶
Key |
Type |
Default |
Description |
|---|---|---|---|
|
int |
required |
Number of parallel REPEX workers |
|
list[str] |
|
Per-worker MD run commands (optional) |
[simulation]¶
Key |
Type |
Default |
Description |
|---|---|---|---|
|
list[float] |
required |
Sorted interface values for TIS ensembles |
|
int |
required |
Total number of RETIS cycles |
|
list[str] |
required |
Move type per interface: |
|
int |
|
RNG seed for reproducibility |
|
str |
|
Name of the per-ensemble operational trajectory store ( |
|
float |
|
Probability of zero-plus swaps in REPEX |
|
int |
|
Ensemble picking scheme (0 = uniform) |
|
list[float] or null |
|
Relative per-ensemble move-selection frequencies (one weight per ensemble, interface order, |
|
list[list[str]] |
auto |
Engine keys per interface |
[simulation.tis_set]¶
Key |
Type |
Default |
Description |
|---|---|---|---|
|
int |
required |
Maximum allowed path length |
|
bool |
required |
Accept paths exactly at max length |
|
bool |
optional |
Reset centre-of-mass momentum after shooting. When the key is absent each engine’s own default applies: most engines leave it |
|
int |
required |
Velocity reassignment jumps per shooting move |
|
bool |
|
Use quantIS variant (per-ensemble engines) |
|
bool/int |
|
Create a minus interface below the first |
|
bool |
|
Accept all paths unconditionally |
|
float |
optional |
Upper interface cap for flux collection |
|
int |
|
Max ensemble block size for which the exact matrix permanent is computed (larger blocks use the stochastic approximation) |
|
int |
|
Sample count for the stochastic permanent approximation used above |
|
bool |
|
Forbid the stochastic fallback (raise instead of approximating a block larger than |
[engine]¶
Multiple engines can be defined as [engine], [engine0], [engine1], etc.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
str |
required |
Engine type: |
|
str |
required |
Backend name (for logging) |
|
float |
required |
MD timestep in engine’s native units |
|
int |
required |
MD steps per TIS move |
|
float |
required |
Simulation temperature |
|
float |
required |
Boltzmann constant (kB) |
|
str |
external only |
Path to external engine input files |
|
str |
CP2K only |
CP2K executable name |
|
str |
GROMACS only |
GROMACS executable (e.g. |
|
str |
LAMMPS only |
LAMMPS executable (e.g. |
|
list/str |
GROMACS |
Particle masses or path to masses.txt |
[engine.integrator]¶
Key |
Type |
Description |
|---|---|---|
|
str |
Integrator class: |
[engine.integrator.settings]¶
Keys vary by integrator. Examples for Langevin:
Key |
Type |
Description |
|---|---|---|
|
float |
Friction coefficient |
|
float |
Inverse temperature: |
[engine.potential]¶
Key |
Type |
Description |
|---|---|---|
|
str |
Potential class: |
[engine.potential.settings]¶
Keys vary by potential. Examples for DoubleWell:
Key |
Type |
Description |
|---|---|---|
|
float |
Quartic coefficient |
|
float |
Quadratic coefficient |
|
float |
Constant offset |
[engine.particles]¶
Key |
Type |
Description |
|---|---|---|
|
list[float] |
Mass of each particle |
|
list[str] |
Name/symbol of each particle |
|
list[list[float]] |
Initial position of each particle |
[engine.box]¶
Key |
Type |
Description |
|---|---|---|
|
list[bool] |
Periodicity per dimension |
[orderparameter]¶
Key |
Type |
Default |
Description |
|---|---|---|---|
|
str |
required |
Order parameter class |
|
list[int] |
required |
Particle indices for the OP |
|
bool |
required |
Apply PBC to OP calculation |
|
str |
external |
Path to Python file with custom OP class |
[output]¶
Key |
Type |
Default |
Description |
|---|---|---|---|
|
str |
required |
Output directory |
|
int |
|
Print frequency to |
|
int/bool |
|
Print frequency of ensemble distribution |
|
int |
optional |
Order parameter output frequency |
|
int |
optional |
Energy output frequency |
|
int |
optional |
Trajectory output frequency (-1 = never) |
|
str |
optional |
Backup directory for old trajectories |
|
int |
|
Long-term archive cadence: a superseded path MOVES from its per-ensemble operational store ( |
|
list[str] |
|
Extra trajectory file patterns the archiver carries along when moving a path |
[current] (scheduler-generated run state)¶
Do not add this section to the input file you write. When a run starts,
the scheduler resolves that input configuration and writes output.toml in
the run directory. That generated file is the run record: it contains both
the resolved configuration and a [current] section recording the latest
restartable scheduler state.
The scheduler rewrites output.toml atomically at checkpoints, so it is
safe to inspect between updates. Treat it as output, however: changing it
by hand can make the stored state inconsistent with trajectories and other
run files. To change a simulation, edit the original input and start a new
run; to continue an interrupted one, restart from its run directory and let
PyRETIS read output.toml.
restart.toml is the older name for the same kind of generated state file.
It is read only as a fallback when output.toml is absent, so previously
created runs remain restartable.
Key |
Type |
Description |
|---|---|---|
|
int |
Current RETIS cycle |
|
int |
Total trajectory count |
|
int |
Number of ensembles |
|
list[int] |
Active path indices |
|
dict |
NumPy Generator state for restart |
|
dict |
Version/env metadata (P7.3) |
|
int |
Previous cstep on restart |