templates
prepare_run_directory(batch, run)
async
Preparing directory for each run from batch templates
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
batch
|
object
|
Whole batch configuration. |
required |
run
|
object
|
Specific run configuration. |
required |
Raises:
| Type | Description |
|---|---|
TemplatingError
|
If template directory cannot be moved from source to destination. |
Source code in build/lib/model_ensembler/templates.py
process_templates(run, template_list)
Render templates based on provided context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
run
|
object
|
Specific run configuration. |
required |
template_list
|
list
|
Paths to template sources. |
required |
Raises:
| Type | Description |
|---|---|
TemplatingError
|
If cannot template using the provided format. |