Skip to content

systemslab context replace ​

Description Replace an experiment on a context with a new one.
Usage systemslab context replace [OPTIONS] <CONTEXT> <OLD> <NEW>

Description ​

The systemslab context replace command replaces an existing experiment on a context with another one.

By default, the new experiment keeps the parameters and tags the old experiment had on the context. --param and --tag add to them (a --param overrides a copied parameter with the same key), and --reset-params / --reset-tags drop the copied values first.

bash
systemslab context replace <context-id> <old-experiment-id> <new-experiment-id>

In order for the replace to work the context must be in the open state. Attempting to modify a context after it has been marked complete will result in an error.

If you want to create a new experiment and attach it to the context, use the --context parameter to systemslab submit instead.

Options ​

OptionDefaultDescription
<CONTEXT>The context to modify.
<OLD>The experiment being replaced on the context.
<NEW>The experiment to attach in its place.
-p, --param

Parameters to annotate the new experiment with. These may be used when generating summary reports for the context. Parameters given here override those copied from the old experiment.

This flag can be supplied multiple times. Without a type annotation the type is guessed from the value: true/false become booleans, anything that parses as a number becomes a number, and everything else is a string. Put the type after the key to force it, like so: --param name:string=42, --param name:bool=true, or --param name:number=5.

-t, --tag Tags marking this experiment within the context. This flag can be supplied multiple times.
--reset-params Don't copy parameters from the old experiment.
--reset-tags Don't copy tags from the old experiment.

Common Options ​

OptionDefaultDescription
--systemslab-url The URL at which to access the systemslab server.
--colorauto Controls when color is used in the output. Possible values are auto, always, and never.
--output-formatlong Output format to use when outputting messages. long will result output designed to be human-readable while short is short output meant to be used within scripts.

Environment Variables ​

VariableDescription
SYSTEMSLAB_URLSpecify the URL used to contact the SystemsLab server. Equivalent to --systemslab-url.