sinergym.utils.common.prepare_batch_from_records

sinergym.utils.common.prepare_batch_from_records(records: list)

Prepare a list of dictionaries in order to use Epm.add_batch directly

Parameters:

records (list) – List of records which will be converted to dictionary batch

Returns:

List of dicts where each dictionary is a record element

Return type:

list (dict)