load#

statrl.experiments.utils.load(filename)[source]#

Read an environments.yaml registry.

Each entry maps an environment name to a spec with an entrypoint and optional kwargs. The spec’s directory is recorded under _base_dir so make() can resolve the entrypoint relative to the YAML file rather than the working directory.

Parameters:

filename (str or path-like) – Path to the YAML registry.

Returns:

The parsed registry, each spec augmented with _base_dir.

Return type:

dict

See also

make

Instantiates one of the returned specs.