hazimp.config

Functions concerning the yaml configuration file.

Module Contents

Functions

read_config_file(file_name: str) → list

Read the configuration file and return the info as a list.

instance_builder(config_list: list) → list

From the configuration list build and knowing

hazimp.config.read_config_file(file_name: str) list

Read the configuration file and return the info as a list.

Parameters:

file_name – The yaml file.

Returns:

A list of the configuration file

hazimp.config.instance_builder(config_list: list) list

From the configuration list build and knowing the template, build the the job instances and add attributes in the config to the instances.

Parameters:

config_list – A list describing the simulation.

Returns:

A list of job instances to process over.