Appearance
systemslab context attach
| Description | Attach existing experiments to a context. |
|---|---|
| Usage | systemslab context attach [OPTIONS] <CONTEXT> <SOURCES>... |
Description
The systemslab context attach command attaches one or more existing experiments to a context.
Each source may be either an experiment ID or a context ID. If a context ID is given, every experiment in that context is attached to the target, keeping its original tags and parameters; any --tag or --param values are added to each of them (a --param overrides an existing parameter with the same key).
bash
# attach two experiments
systemslab context attach <context-id> <experiment-id-1> <experiment-id-2>
# copy every experiment from another context, tagging them along the way
systemslab context attach <context-id> <other-context-id> --tag baselineIn order for the attach to work the context must be in the open state. Attempting to attach an experiment to a context after it has been marked complete will result in an error.
INFO
An experiment can be attached to multiple contexts at the same time, with different parameters for each.
If you want to create a new experiment and attach it to the context, use the --context parameter to systemslab submit instead.
Options
| Option | Default | Description |
|---|---|---|
<CONTEXT> | The target context to attach experiments to. | |
<SOURCES>... | One or more experiment or context IDs to attach. | |
-p, --param | Parameters to annotate each attached experiment with. These may be used when generating summary reports for the context. This flag can be supplied multiple times. Without a type annotation the type is guessed from the value: | |
-t, --tag | Tags marking each attached experiment within the context. This flag can be supplied multiple times. |
Common Options
| Option | Default | Description |
|---|---|---|
--systemslab-url | The URL at which to access the systemslab server. | |
--color | auto | Controls when color is used in the output. Possible values are auto, always, and never. |
--output-format | long | 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
| Variable | Description |
|---|---|
SYSTEMSLAB_URL | Specify the URL used to contact the SystemsLab server. Equivalent to --systemslab-url. |