sinergym.utils.common.ranges_getter
- sinergym.utils.common.ranges_getter(output_path: str, last_result: Dict[str, List[float]] | None = None) Dict[str, List[float]]
Given a path with simulations outputs, this function is used to extract max and min absolute values of all episodes in each variable. If a dict ranges is given, will be updated.
- Parameters:
output_path (str) – path with simulations directories (Eplus-env-<env_name>).
last_result (Optional[Dict[str, List[float]]], optional) – Last ranges dict to be updated. This will be created if it is not given.
- Returns:
list min,max of each variable as a key.
- Return type:
Dict[str, List[float]]