sinergym.utils.common

Common utilities.

Functions

create_variable_weather(weather_data, ...[, ...])

Create a new weather file using Ornstein-Uhlenbeck process.

get_current_time_info(epm, sec_elapsed[, ...])

Returns the current day, month and hour given the seconds elapsed since the simulation started.

get_delta_seconds(year, st_mon, st_day, ...)

Returns the delta seconds between year:st_mon:st_day:0:0:0 and year:end_mon:end_day:24:0:0.

parse_observation_action_space(space_file)

Parse observation space definition to gym env.

parse_variables(var_file)

Parse observation and action to dictionary.

ranges_getter(output_path[, last_result])

Given a path with simulations outputs, this function is used to extract max and min absolute valors of all episodes in each variable.

setpoints_transform(action, action_space, ...)

Given an action inner gym action_space, this will be converted into an action inner setpoints_space (Sinergym Simulation).

Classes

CSVLogger(monitor_header, progress_header, ...)

CSV Logger for agent interaction with environment.

Logger()

Sinergym terminal logger for simulation executions.