sinergym.utils.common.prepare_batch_from_records
- sinergym.utils.common.prepare_batch_from_records(records: List[opyplus.epm.record.Record]) List[Dict[str, Any]]
Prepare a list of dictionaries in order to use Epm.add_batch directly
- Parameters:
List[opyplus.Epm.Record] (records) – 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[str, Any]]