sinergym.utils.common

Common utilities.

Functions

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

Create a new weather file using Ornstein-Uhlenbeck process.

export_actuators_to_excel(actuators, path)

Given a python dictionary with actuators with Config:_get_actuators() format, this method export that information in a excel file

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(st_year, st_mon, st_day, ...)

Returns the delta seconds between st year:st mon:st day:0:0:0 and end year:end mon:end day:24:0:0.

get_record_keys(record)

Given an opyplus Epm Record (one element from opyplus.epm object) this function returns list of keys (opyplus hasn't got this functionality explicitly)

get_season_comfort_range(year, month, day)

Get comfort temperature range depending on season.

is_wrapped(env, wrapper_class)

Check if a given environment has been wrapped with a given wrapper.

prepare_batch_from_records(records)

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

ranges_getter(output_path[, last_result])

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

to_idf(building, file_path)

Given a building model (opyplus Epm object), this function export an IDF file with all content specified.

unwrap_wrapper(env, wrapper_class)

Retrieve a VecEnvWrapper object by recursively searching.