BaseEnsembleSpec

class jaxrens.cli.schema.ensemble.BaseEnsembleSpec[source]

Bases: BaseModel

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

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

cohort_size()[source]

Number of replicas this ensemble drives (1 = single run).

Overridden by specs whose driving parameter (pressure, μ) can be a list. The default covers parameterless ensembles like NVT.

Return type:

int

to_ensemble_params(*, cohort_index=0)[source]

Return per-run scalar ensemble parameters for cohort_index.

Returns:

Dict of keyword arguments passed to the ensemble backend. Empty for NVT; {"pressure": float} for NPT.

Parameters:

cohort_index (int)

Return type:

dict