task.task¶
Tasks.
Task
¶
Tasks combine models with simulations.
This allows to execute the same simulation with different model variants.
Initialize Task.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
str
|
Key of the model. |
required |
simulation
|
str
|
Key of the simulation. |
required |
sid
|
str | None
|
Identifier of the task. |
None
|
name
|
str | None
|
Name of the task. |
None
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If model or simulation are not string keys. |
to_dict
¶
Convert to dictionary.
Returns:
| Type | Description |
|---|---|
dict[str, str]
|
Dictionary with model and simulation keys. |