SYMBOL INDEX (1012 symbols across 67 files) FILE: docs/source/conf.py function autodoc_skip_member (line 87) | def autodoc_skip_member(app, what, name, obj, skip, options): function autodoc_process_signature (line 101) | def autodoc_process_signature(app, what, name, obj, options, signature, ... function linkcode_resolve (line 112) | def linkcode_resolve(domain, info): function setup (line 168) | def setup(app): FILE: src/pymgrid/MicrogridGenerator.py class MicrogridGenerator (line 61) | class MicrogridGenerator: method __init__ (line 112) | def __init__(self, nb_microgrid=10, method _get_random_file (line 128) | def _get_random_file(self, path): method _scale_ts (line 137) | def _scale_ts(self, df_ts, size, scaling_method='sum'): method _resize_timeseries (line 150) | def _resize_timeseries(self, timeseries, current_time_step, new_time_s... method _get_pv_ts (line 178) | def _get_pv_ts(self): method _get_load_ts (line 187) | def _get_load_ts(self): method _get_wind_ts (line 196) | def _get_wind_ts(self): method _get_co2_ts (line 205) | def _get_co2_ts(self): method _get_genset (line 214) | def _get_genset(self, rated_power=1000, pmax=0.9, pmin=0.05): method _get_battery (line 230) | def _get_battery(self, capa=1000, duration=4, pcharge=100, pdischarge=... method _get_grid_price_ts (line 246) | def _get_grid_price_ts(self, nb_time_step_per_year, tou=0, rt=0, price... method _get_electricity_tariff (line 253) | def _get_electricity_tariff(self, scenario): method _get_grid (line 288) | def _get_grid(self, rated_power=1000, weak_grid=0, pmin=0.2, price_sce... method _generate_weak_grid_profile (line 321) | def _generate_weak_grid_profile(self, outage_per_day, duration_of_outa... method _size_mg (line 346) | def _size_mg(self, load, size_load=1): method _size_genset (line 372) | def _size_genset(self, load, max_operating_loading = 0.9): method _size_battery (line 382) | def _size_battery(self, load): method generate_microgrid (line 393) | def generate_microgrid(self, modular=True, verbose=False): method load (line 408) | def load(cls, scenario): method _bin_genset_grid (line 417) | def _bin_genset_grid(self): method _size_load (line 437) | def _size_load(self, size_load=None): method _create_microgrid (line 443) | def _create_microgrid(self): method print_mg_parameters (line 609) | def print_mg_parameters(self, id='all'): method print_all_costs (line 625) | def print_all_costs(self): FILE: src/pymgrid/_deprecated/Environments/Environment.py function generate_sampler (line 34) | def generate_sampler(microgrid, forecast_args): class Environment (line 46) | class Environment(gym.Env): method __init__ (line 57) | def __init__(self, env_config, seed = 42): method get_reward (line 108) | def get_reward(self): method get_cost (line 116) | def get_cost(self): method step (line 121) | def step(self, action): method reset (line 159) | def reset(self, testing=False): method get_action (line 176) | def get_action(self, action): method states (line 195) | def states(self): # soc, price, load, pv 'df status?' method transition (line 200) | def transition(self): method seed (line 215) | def seed (self, seed=None): method render (line 219) | def render(self, mode="human"): method get_action_continuous (line 224) | def get_action_continuous(self, action): method get_action_discrete (line 277) | def get_action_discrete(self, action): method get_action_priority_list (line 315) | def get_action_priority_list(self, action): method actions_agent_discret (line 349) | def actions_agent_discret(self, mg, action): method action_grid (line 361) | def action_grid(self, mg, action): method action_grid_genset (line 434) | def action_grid_genset(self, mg, action): method action_genset (line 530) | def action_genset(self, mg, action): FILE: src/pymgrid/_deprecated/Environments/Preprocessing.py function normalize_environment_states (line 3) | def normalize_environment_states(mg): function sample_reset (line 27) | def sample_reset(has_grid, saa, microgrid, sampling_args=None): FILE: src/pymgrid/_deprecated/Environments/pymgrid_csca.py function sample_reset (line 18) | def sample_reset(has_grid, saa, microgrid, sampling_args=None): function generate_sampler (line 42) | def generate_sampler(microgrid, forecast_args): class MicrogridEnv (line 55) | class MicrogridEnv(Env, ABC): method __init__ (line 58) | def __init__(self, microgrid, trajectory_len=None, max_episode_len=None): method _short_trajectory_set (line 101) | def _short_trajectory_set(self): method reset (line 112) | def reset(self): method step (line 123) | def step(self, action, **kwargs): method get_control_dict (line 154) | def get_control_dict(self, action): method run_control (line 161) | def run_control(self, control_dict): class ContinuousMicrogridEnv (line 174) | class ContinuousMicrogridEnv(MicrogridEnv): method __init__ (line 178) | def __init__(self, microgrid, standardization=True, trajectory_len=Non... method _get_action_ub_lb (line 205) | def _get_action_ub_lb(self): method get_values (line 237) | def get_values(self, *value_names): method reset (line 293) | def reset(self): method step (line 304) | def step(self, action, **kwargs): method standardize (line 354) | def standardize(self, data, mean_proxy=None, std_proxy=None, direction... method pre_compute_standardizations (line 393) | def pre_compute_standardizations(self,alg_to_use='mpc'): method get_control_dict (line 459) | def get_control_dict(self, action): class ContinuousMicrogridSampleEnv (line 487) | class ContinuousMicrogridSampleEnv(ContinuousMicrogridEnv): method __init__ (line 492) | def __init__(self, microgrid, standardization=True, method reset (line 500) | def reset(self, sampling_args=None): class SafeExpMicrogridEnv (line 511) | class SafeExpMicrogridEnv(ContinuousMicrogridEnv): method __init__ (line 515) | def __init__(self, microgrid, method get_num_constraints (line 536) | def get_num_constraints(self): method get_constraint_values (line 546) | def get_constraint_values(self): method _get_energy_balance (line 560) | def _get_energy_balance(self): method _get_inequality_constraints (line 581) | def _get_inequality_constraints(self): class SafeExpMicrogridSampleEnv (line 645) | class SafeExpMicrogridSampleEnv(SafeExpMicrogridEnv): method __init__ (line 646) | def __init__(self, method reset (line 669) | def reset(self, sampling_args=None): FILE: src/pymgrid/_deprecated/Environments/pymgrid_csca_old.py class MicroGridEnv (line 8) | class MicroGridEnv(Environment): method __init__ (line 20) | def __init__(self, env_config, seed=42): method get_action (line 40) | def get_action(self, action): FILE: src/pymgrid/_deprecated/Environments/pymgrid_csda.py class MicroGridEnv (line 8) | class MicroGridEnv(Environment): method __init__ (line 20) | def __init__(self, env_config, seed=42): method get_action (line 40) | def get_action(self, action): FILE: src/pymgrid/_deprecated/Environments/pymgrid_cspla.py class MicroGridEnv (line 28) | class MicroGridEnv(Environment): method __init__ (line 41) | def __init__(self, env_config, seed=42): method get_action (line 50) | def get_action(self, action): FILE: src/pymgrid/_deprecated/non_modular_microgrid.py function in_ipynb (line 31) | def in_ipynb(): class Battery (line 57) | class Battery: method __init__ (line 112) | def __init__(self, param_battery, capa_to_charge, capa_to_discharge): class Genset (line 127) | class Genset: method __init__ (line 162) | def __init__(self, param): class Grid (line 170) | class Grid: method __init__ (line 211) | def __init__(self, param, status, price_import, price_export, co2): class NonModularMicrogrid (line 220) | class NonModularMicrogrid: method __init__ (line 343) | def __init__(self, parameters, horizon=DEFAULT_HORIZON, timestep=DEFAU... method _param_check (line 403) | def _param_check(self, parameters): method set_horizon (line 444) | def set_horizon(self, horizon): method set_cost_co2 (line 448) | def set_cost_co2(self, co2_cost): method get_data (line 452) | def get_data(self): method get_training_testing_data (line 456) | def get_training_testing_data(self): method get_control_dict (line 465) | def get_control_dict(self): method get_parameters (line 470) | def get_parameters(self): method get_cost (line 475) | def get_cost(self): method get_co2 (line 479) | def get_co2(self): method get_updated_values (line 483) | def get_updated_values(self): method forecast_all (line 502) | def forecast_all(self): method forecast_pv (line 516) | def forecast_pv(self): method forecast_load (line 532) | def forecast_load(self): method forecast_grid_status (line 546) | def forecast_grid_status(self): method forecast_grid_co2 (line 563) | def forecast_grid_co2(self): method forecast_grid_prices (line 580) | def forecast_grid_prices(self): method run (line 607) | def run(self, control_dict): method train_test_split (line 671) | def train_test_split(self, train_size=0.67, shuffle = False, cancel=Fa... method update_variables (line 744) | def update_variables(self): method reset (line 818) | def reset(self, testing=False): method _record_action (line 856) | def _record_action(self, control_dict, df): method _update_status (line 870) | def _update_status(self, production_dict, df, next_load, next_pv, next... method _check_constraints_genset (line 921) | def _check_constraints_genset(self, p_genset): method _check_constraints_grid (line 935) | def _check_constraints_grid(self, p_import, p_export): method _check_constraints_battery (line 956) | def _check_constraints_battery(self, p_charge, p_discharge, status): method _record_production (line 989) | def _record_production(self, control_dict, production_dict, status): method _record_co2 (line 1082) | def _record_co2(self, control_dict, df, grid_co2=0): method _record_cost (line 1098) | def _record_cost(self, control_dict, df, df_co2, cost_import=0, cost_e... method print_load_pv (line 1141) | def print_load_pv(self): method print_actual_production (line 1151) | def print_actual_production(self): method print_control (line 1160) | def print_control(self): method print_co2 (line 1169) | def print_co2(self): method print_cumsum_cost (line 1178) | def print_cumsum_cost(self): method print_benchmark_cost (line 1189) | def print_benchmark_cost(self): method print_info (line 1207) | def print_info(self): method print_control_info (line 1225) | def print_control_info(self): method print_updated_parameters (line 1235) | def print_updated_parameters(self): method penalty (line 1251) | def penalty(self, coef = 1): method from_modular (line 1261) | def from_modular(cls, modular): method to_modular (line 1265) | def to_modular(self): FILE: src/pymgrid/algos/Control.py class HorizonOutput (line 28) | class HorizonOutput: method __init__ (line 30) | def __init__(self,control_dicts, microgrid, current_step): method compute_cost_over_horizon (line 37) | def compute_cost_over_horizon(self, current_step): method __eq__ (line 59) | def __eq__(self, other): method __lt__ (line 64) | def __lt__(self, other): method __gt__ (line 69) | def __gt__(self, other): class ControlOutput (line 75) | class ControlOutput(dict): method __init__ (line 94) | def __init__(self, names=None, dfs=None, alg_name=None, empty=False, m... method append (line 131) | def append(self, other_output, actual_load=None, actual_pv=None, actua... method to_frame (line 202) | def to_frame(self): method __eq__ (line 217) | def __eq__(self, other): method __lt__ (line 222) | def __lt__(self, other): method __gt__ (line 227) | def __gt__(self, other): class Benchmarks (line 233) | class Benchmarks: method __init__ (line 258) | def __init__(self, microgrid): method run_mpc_benchmark (line 272) | def run_mpc_benchmark(self, verbose=False, **kwargs): method run_rule_based_benchmark (line 284) | def run_rule_based_benchmark(self): method run_saa_benchmark (line 296) | def run_saa_benchmark(self, preset_to_use=85, **kwargs): method run_benchmarks (line 303) | def run_benchmarks(self, algo=None, verbose=False, preset_to_use=85, *... method describe_benchmarks (line 326) | def describe_benchmarks(self, test_split=False, test_ratio=None, test_... FILE: src/pymgrid/algos/mpc/mpc.py class ModelPredictiveControl (line 55) | class ModelPredictiveControl: method __init__ (line 81) | def __init__(self, microgrid, solver=None): method has_genset (line 106) | def has_genset(self): method _verify_microgrid (line 115) | def _verify_microgrid(self, microgrid): method _get_modules (line 130) | def _get_modules(self, modular_microgrid): method _get_horizon (line 138) | def _get_horizon(self): method _parse_microgrid (line 147) | def _parse_microgrid(self): method _parse_nonmodular_microgrid (line 172) | def _parse_nonmodular_microgrid(self): method _parse_modular_microgrid (line 199) | def _parse_modular_microgrid(self): method _create_problem (line 231) | def _create_problem(self, eta, battery_capacity, fuel_cost, cost_batte... method _get_solver (line 376) | def _get_solver(self, mosek_failure=None): method _set_parameters (line 401) | def _set_parameters(self, load_vector, pv_vector, grid_vector, import_... method run (line 494) | def run(self, max_steps=None, verbose=False): method _run_mpc_on_nonmodular (line 517) | def _run_mpc_on_nonmodular(self, forecast_steps=None, verbose=False): method _run_mpc_on_modular (line 534) | def _run_mpc_on_modular(self, forecast_steps=None, verbose=False): method _get_num_iter (line 553) | def _get_num_iter(self, forecast_steps=None): method _run_mpc_on_sample (line 563) | def _run_mpc_on_sample(self, sample, forecast_steps=None, verbose=False): method _set_and_solve (line 715) | def _set_and_solve(self, method _extract_control_dict (line 799) | def _extract_control_dict(self, return_steps, pv_vector, load_vector): method _extract_modular_control (line 866) | def _extract_modular_control(self, load_vector, verbose): method _get_modular_state_values (line 898) | def _get_modular_state_values(self): method mpc_single_step (line 965) | def mpc_single_step(self, sample, previous_output, current_step): FILE: src/pymgrid/algos/priority_list/priority_list.py class PriorityListAlgo (line 14) | class PriorityListAlgo: method get_priority_lists (line 15) | def get_priority_lists(self, remove_redundant_gensets): method _remove_redundant_actions (line 40) | def _remove_redundant_actions(self, priority_lists, gensets=False): method _remove_redundant_gensets (line 53) | def _remove_redundant_gensets(self, priority_lists): method _populate_action (line 69) | def _populate_action(self, priority_list): method _consume_in_module (line 118) | def _consume_in_module(self, module_to_deploy, remaining_load): method _produce_from_module (line 138) | def _produce_from_module(self, module_action_number, module_to_deploy,... method _get_load (line 157) | def _get_load(self): method _get_renewable (line 166) | def _get_renewable(self): method modules (line 171) | def modules(self): method fixed (line 176) | def fixed(self): method flex (line 181) | def flex(self): method get_empty_action (line 185) | def get_empty_action(self): FILE: src/pymgrid/algos/priority_list/priority_list_element.py class PriorityListElement (line 8) | class PriorityListElement: method __eq__ (line 62) | def __eq__(self, other): method __lt__ (line 73) | def __lt__(self, other): FILE: src/pymgrid/algos/rbc/_nonmodular_rbc.py class NonModularRuleBasedControl (line 8) | class NonModularRuleBasedControl: method __init__ (line 9) | def __init__(self, microgrid): method _generate_priority_list (line 15) | def _generate_priority_list(self, architecture, parameters, grid_statu... method _run_priority_based (line 48) | def _run_priority_based(self, load, pv, parameters, status, priority_d... method run_rule_based (line 181) | def run_rule_based(self, priority_list=0, length=None): FILE: src/pymgrid/algos/rbc/rbc.py class RuleBasedControl (line 7) | class RuleBasedControl(PriorityListAlgo): method __init__ (line 26) | def __init__(self, microgrid, priority_list=None, remove_redundant_gen... method _get_priority_list (line 31) | def _get_priority_list(self, priority_list, remove_redundant_gensets): method _get_action (line 46) | def _get_action(self): method reset (line 52) | def reset(self): method run (line 64) | def run(self, max_steps=None, verbose=False): method get_empty_action (line 95) | def get_empty_action(self): method microgrid (line 102) | def microgrid(self): method fixed (line 115) | def fixed(self): method flex (line 120) | def flex(self): method modules (line 125) | def modules(self): method priority_list (line 130) | def priority_list(self): FILE: src/pymgrid/algos/saa/saa.py class SampleAverageApproximation (line 10) | class SampleAverageApproximation(SampleGenerator): method __init__ (line 41) | def __init__(self, microgrid, control_duration=8760, **forecast_args): method run (line 52) | def run(self, n_samples=10, forecast_steps=None, optimal_percentile=0.... method determine_optimal_actions (line 82) | def determine_optimal_actions(self, outputs=None, percentile=0.5, verb... method run_mpc_on_group (line 112) | def run_mpc_on_group(self, samples, forecast_steps=None, optimal_perce... method run_deterministic_on_forecast (line 151) | def run_deterministic_on_forecast(self, forecast_steps=None, verbose=F... FILE: src/pymgrid/convert/convert.py function to_modular (line 7) | def to_modular(nonmodular, raise_errors=False): function to_nonmodular (line 17) | def to_nonmodular(modular): FILE: src/pymgrid/convert/get_module.py function get_module (line 5) | def get_module(component, nonmodular, raise_errors): function get_load_module (line 22) | def get_load_module(nonmodular, raise_errors): function get_pv_module (line 30) | def get_pv_module(nonmodular, raise_errors): function get_battery_module (line 39) | def get_battery_module(nonmodular, raise_errors): function get_genset_module (line 58) | def get_genset_module(nonmodular, raise_errors): function get_grid_module (line 75) | def get_grid_module(nonmodular, raise_errors): function get_unbalanced_energy_module (line 99) | def get_unbalanced_energy_module(nonmodular, raise_errors): FILE: src/pymgrid/convert/to_nonmodular_ops.py function get_empty_params (line 24) | def get_empty_params(): function check_viability (line 28) | def check_viability(modular): function finalize_params (line 58) | def finalize_params(params_dict): function add_params_from_module (line 62) | def add_params_from_module(module, params_dict): function add_load_params (line 79) | def add_load_params(load_module, params_dict): function add_pv_params (line 89) | def add_pv_params(pv_module, params_dict): function add_battery_params (line 99) | def add_battery_params(battery_module, params_dict): function add_grid_params (line 123) | def add_grid_params(grid_module, params_dict): function add_genset_params (line 148) | def add_genset_params(genset_module, params_dict): function add_unbalanced_energy_params (line 172) | def add_unbalanced_energy_params(unbalanced_energy_module, params_dict): function _add_empty (line 181) | def _add_empty(params_dict, subdict_name, *keys): function _add_to_architecture (line 185) | def _add_to_architecture(params_dict, component): function _add_to_parameters (line 191) | def _add_to_parameters(params_dict, **parameters): function _add_to_df_actions (line 196) | def _add_to_df_actions(params_dict, *keys): function _add_to_df_status (line 200) | def _add_to_df_status(params_dict, **init_status_values): function _add_to_df_actual_generation (line 205) | def _add_to_df_actual_generation(params_dict, *keys): function _add_to_df_cost (line 209) | def _add_to_df_cost(params_dict, *keys): function _add_to_control_dict (line 213) | def _add_to_control_dict(params_dict, *keys): function _add_cost_co2 (line 217) | def _add_cost_co2(params_dict, cost_co2): function _add_genset_polynom (line 229) | def _add_genset_polynom(params_dict): FILE: src/pymgrid/envs/base/base.py class BaseMicrogridEnv (line 11) | class BaseMicrogridEnv(Microgrid, Env): method __new__ (line 65) | def __new__(cls, modules, *args, **kwargs): method __init__ (line 85) | def __init__(self, method _validate_observation_keys (line 109) | def _validate_observation_keys(self, keys): method _get_action_space (line 125) | def _get_action_space(self, remove_redundant_actions=False): method _get_observation_space (line 128) | def _get_observation_space(self): method reset (line 165) | def reset(self): method step (line 169) | def step(self, action, normalized=True): method _get_obs (line 211) | def _get_obs(self, obs): method render (line 225) | def render(self, mode="human"): method unwrapped (line 230) | def unwrapped(self): method flat_spaces (line 235) | def flat_spaces(self): method from_microgrid (line 253) | def from_microgrid(cls, microgrid, **kwargs): method from_nonmodular (line 288) | def from_nonmodular(cls, nonmodular, **kwargs): method from_scenario (line 293) | def from_scenario(cls, microgrid_number=0, **kwargs): method load (line 302) | def load(cls, stream): FILE: src/pymgrid/envs/base/skip_init.py function skip_init (line 1) | def skip_init(cls, init): FILE: src/pymgrid/envs/continuous/continuous.py class ContinuousMicrogridEnv (line 7) | class ContinuousMicrogridEnv(BaseMicrogridEnv): method _get_nested_action_space (line 56) | def _get_nested_action_space(self): method _get_action_space (line 60) | def _get_action_space(self): method _get_action (line 64) | def _get_action(self, action): method step (line 72) | def step(self, action): method run (line 76) | def run(self, action, normalized=True): FILE: src/pymgrid/envs/discrete/discrete.py class DiscreteMicrogridEnv (line 10) | class DiscreteMicrogridEnv(BaseMicrogridEnv, PriorityListAlgo): method __init__ (line 38) | def __init__(self, method _get_action_space (line 60) | def _get_action_space(self, remove_redundant_gensets=False): method _get_action (line 82) | def _get_action(self, action_num): method remove_action (line 90) | def remove_action(self, action_number): method step (line 109) | def step(self, action): method sample_action (line 145) | def sample_action(self, strict_bound=False, sample_flex_modules=False): method __repr__ (line 148) | def __repr__(self): method __str__ (line 151) | def __str__(self): FILE: src/pymgrid/forecast/forecaster.py function get_forecaster (line 10) | def get_forecaster(forecaster, class Forecaster (line 91) | class Forecaster: method __init__ (line 92) | def __init__(self, observation_space, forecast_shape): method _get_forecast_shaped_space (line 97) | def _get_forecast_shaped_space(self, shape): method _forecast (line 117) | def _forecast(self, val_c, val_c_n, n): method _pad (line 120) | def _pad(self, forecast, n): method full_pad (line 133) | def full_pad(self, shape, forecast_horizon): method _clip (line 140) | def _clip(self, forecast): method observation_space (line 152) | def observation_space(self): method observation_space (line 156) | def observation_space(self, value): method __eq__ (line 165) | def __eq__(self, other): method __call__ (line 172) | def __call__(self, val_c, val_c_n, n): method __repr__ (line 189) | def __repr__(self): class UserDefinedForecaster (line 193) | class UserDefinedForecaster(Forecaster): method __init__ (line 194) | def __init__(self, forecaster_function, observation_space, forecast_sh... method _cast_to_arr (line 205) | def _cast_to_arr(self, forecast, val_c_n): method _forecast (line 210) | def _forecast(self, val_c, val_c_n, n): class OracleForecaster (line 215) | class OracleForecaster(Forecaster): method _forecast (line 216) | def _forecast(self, val_c, val_c_n, n): class GaussianNoiseForecaster (line 220) | class GaussianNoiseForecaster(Forecaster): method __init__ (line 221) | def __init__(self, method _get_noise_std (line 237) | def _get_noise_std(self, time_series): method _get_noise (line 252) | def _get_noise(self, size): method _forecast (line 262) | def _forecast(self, val_c, val_c_n, n): method noise_std (line 266) | def noise_std(self): method noise_std (line 270) | def noise_std(self, value): method __repr__ (line 273) | def __repr__(self): class NoForecaster (line 278) | class NoForecaster(Forecaster): method _forecast (line 279) | def _forecast(self, val_c, val_c_n, n): function _validate_callable_forecaster (line 283) | def _validate_callable_forecaster(forecaster, time_series): function _validate_vectorized_forecaster (line 299) | def _validate_vectorized_forecaster(forecaster, val_c, vector_true_forec... function _validate_scalar_forecaster (line 328) | def _validate_scalar_forecaster(forecaster, val_c, scalar_true_forecast,... function _validate_forecasted_value (line 350) | def _validate_forecasted_value(forecaster_output, true_forecast, val_c, n): function vectorize_scalar_forecaster (line 362) | def vectorize_scalar_forecaster(forecaster): FILE: src/pymgrid/microgrid/microgrid.py class Microgrid (line 15) | class Microgrid(yaml.YAMLObject): method __init__ (line 100) | def __init__(self, method _get_unbalanced_energy_module (line 130) | def _get_unbalanced_energy_module(self, method _get_module_container (line 139) | def _get_module_container(self, modules, add_unbalanced_module, loss_l... method _check_trajectory_func (line 175) | def _check_trajectory_func(self, trajectory_func): method reset (line 205) | def reset(self): method _set_trajectory (line 221) | def _set_trajectory(self): method run (line 227) | def run(self, control, normalized=True): method _get_log_dict (line 327) | def _get_log_dict(self, provided_energy, absorbed_energy, log_dict=Non... method get_cost_info (line 334) | def get_cost_info(self): method sample_action (line 337) | def sample_action(self, strict_bound=False, sample_flex_modules=False): method get_empty_action (line 364) | def get_empty_action(self, sample_flex_modules=False): method to_normalized (line 388) | def to_normalized(self, data_dict, act=False, obs=False): method from_normalized (line 411) | def from_normalized(self, data_dict, act=False, obs=False): method get_log (line 434) | def get_log(self, as_frame=True, drop_singleton_key=False): method set_forecaster (line 477) | def set_forecaster(self, method get_forecast_horizon (line 553) | def get_forecast_horizon(self): method set_module_attr (line 583) | def set_module_attr(self, attr_name, value): method current_step (line 615) | def current_step(self): method initial_step (line 627) | def initial_step(self): method _get_module_initial_step (line 640) | def _get_module_initial_step(self): method initial_step (line 649) | def initial_step(self, value): method _set_initial_step (line 652) | def _set_initial_step(self, value, modules_only=False): method final_step (line 658) | def final_step(self): method _get_module_final_step (line 669) | def _get_module_final_step(self): method final_step (line 678) | def final_step(self, value): method _set_final_step (line 681) | def _set_final_step(self, value, modules_only=False): method modules (line 687) | def modules(self): method state_dict (line 699) | def state_dict(self, normalized=False): method log (line 721) | def log(self): method state_series (line 735) | def state_series(self, normalized=False): method fixed (line 763) | def fixed(self): method flex (line 774) | def flex(self): method controllable (line 786) | def controllable(self): method module_list (line 797) | def module_list(self): method n_modules (line 810) | def n_modules(self): method dump (line 820) | def dump(self, stream=None): method load (line 848) | def load(cls, stream): method to_yaml (line 867) | def to_yaml(cls, dumper, data): method from_yaml (line 875) | def from_yaml(cls, loader, node): method serialize (line 895) | def serialize(self, dumper_stream): method _serialization_data (line 901) | def _serialization_data(self): method from_nonmodular (line 911) | def from_nonmodular(cls, nonmodular): method to_nonmodular (line 937) | def to_nonmodular(self): method from_scenario (line 959) | def from_scenario(cls, microgrid_number=0): method _dir_additions (line 982) | def _dir_additions(self): method __dir__ (line 988) | def __dir__(self): method __getnewargs__ (line 993) | def __getnewargs__(self): method __len__ (line 996) | def __len__(self): method __eq__ (line 1009) | def __eq__(self, other): method __repr__ (line 1018) | def __repr__(self): method __getattr__ (line 1023) | def __getattr__(self, item): FILE: src/pymgrid/microgrid/reward_shaping/base.py class BaseRewardShaper (line 6) | class BaseRewardShaper(yaml.YAMLObject): method sum_module_val (line 11) | def sum_module_val(info, module_name, module_attr): method __call__ (line 19) | def __call__(self, step_info, cost_info): method __repr__ (line 22) | def __repr__(self): FILE: src/pymgrid/microgrid/reward_shaping/battery_discharge_shaper.py class BatteryDischargeShaper (line 6) | class BatteryDischargeShaper(BaseRewardShaper): method __call__ (line 22) | def __call__(self, step_info, cost_info): FILE: src/pymgrid/microgrid/reward_shaping/pv_curtailment_shaper.py class PVCurtailmentShaper (line 4) | class PVCurtailmentShaper(BaseRewardShaper): method __call__ (line 15) | def __call__(self, step_info, cost_info): FILE: src/pymgrid/microgrid/trajectory/base.py class BaseTrajectory (line 7) | class BaseTrajectory(yaml.YAMLObject): method __call__ (line 12) | def __call__(self, initial_step, final_step): method __repr__ (line 15) | def __repr__(self): method __eq__ (line 20) | def __eq__(self, other): FILE: src/pymgrid/microgrid/trajectory/deterministic.py class DeterministicTrajectory (line 4) | class DeterministicTrajectory(BaseTrajectory): method __init__ (line 7) | def __init__(self, initial_step, final_step): method __call__ (line 11) | def __call__(self, initial_step, final_step): FILE: src/pymgrid/microgrid/trajectory/stochastic.py class StochasticTrajectory (line 6) | class StochasticTrajectory(BaseTrajectory): method __call__ (line 9) | def __call__(self, initial_step, final_step): class FixedLengthStochasticTrajectory (line 17) | class FixedLengthStochasticTrajectory(BaseTrajectory): method __init__ (line 20) | def __init__(self, trajectory_length): method __call__ (line 23) | def __call__(self, initial_step, final_step): FILE: src/pymgrid/microgrid/utils/step.py class MicrogridStep (line 4) | class MicrogridStep: method __init__ (line 5) | def __init__(self, reward_shaping_func=None, cost_info=None): method append (line 13) | def append(self, module_name, obs, reward, done, info): method balance (line 33) | def balance(self): method output (line 38) | def output(self): method shaped_reward (line 41) | def shaped_reward(self): method _output_info (line 48) | def _output_info(self): method obs (line 52) | def obs(self): method reward (line 56) | def reward(self): method done (line 60) | def done(self): method info (line 64) | def info(self): FILE: src/pymgrid/modules/base/base_module.py class BaseMicrogridModule (line 17) | class BaseMicrogridModule(yaml.YAMLObject): method __init__ (line 37) | def __init__(self, method _get_action_spaces (line 53) | def _get_action_spaces(self): method _get_observation_spaces (line 59) | def _get_observation_spaces(self): method reset (line 65) | def reset(self): method _raise_error (line 79) | def _raise_error(self, ask_value, available_value, as_source=False, as... method step (line 95) | def step(self, action, normalized=True): method _unnormalized_step (line 161) | def _unnormalized_step(self, unnormalized_action): method as_source (line 173) | def as_source(self, energy_demand): method as_sink (line 228) | def as_sink(self, energy_excess): method _log (line 276) | def _log(self, state_dict_pre_step, provided_energy=None, absorbed_ene... method _update_step (line 292) | def _update_step(self, reset=False): method update (line 299) | def update(self, external_energy_change, as_source=False, as_sink=False): method sample_action (line 326) | def sample_action(self, strict_bound=False): method to_normalized (line 358) | def to_normalized(self, value, act=False, obs=False): method from_normalized (line 383) | def from_normalized(self, value, act=False, obs=False): method log_dict (line 408) | def log_dict(self): method log_frame (line 419) | def log_frame(self): method log (line 431) | def log(self): method logger (line 445) | def logger(self): method logger_last (line 457) | def logger_last(self): method logger (line 469) | def logger(self, logger): method state_dict (line 473) | def state_dict(self, normalized=False): method _state_dict (line 493) | def _state_dict(self): method state (line 506) | def state(self): method current_step (line 520) | def current_step(self): method current_step (line 532) | def current_step(self, value): method min_obs (line 537) | def min_obs(self): method max_obs (line 554) | def max_obs(self): method min_act (line 571) | def min_act(self): method max_act (line 588) | def max_act(self): method min_production (line 604) | def min_production(self): method max_production (line 622) | def max_production(self): method max_consumption (line 637) | def max_consumption(self): method marginal_cost (line 652) | def marginal_cost(self): method production_marginal_cost (line 665) | def production_marginal_cost(self): method absorption_marginal_cost (line 669) | def absorption_marginal_cost(self): method action_space (line 673) | def action_space(self): method observation_space (line 687) | def observation_space(self): method is_source (line 701) | def is_source(self): method is_sink (line 713) | def is_sink(self): method dump (line 724) | def dump(self, stream=None): method load (line 752) | def load(cls, stream): method from_yaml (line 772) | def from_yaml(cls, loader, node): method to_yaml (line 802) | def to_yaml(cls, dumper, data): method serialize (line 826) | def serialize(self, dumper_stream): method serializable_state_attributes (line 852) | def serializable_state_attributes(self): method _serialize_state_attributes (line 867) | def _serialize_state_attributes(self): method _serialize_cls_params (line 870) | def _serialize_cls_params(self): method deserialize_instance (line 884) | def deserialize_instance(cls, param_dict): method deserialize (line 927) | def deserialize(self, serialized_dict): method __eq__ (line 959) | def __eq__(self, other): method __repr__ (line 968) | def __repr__(self): FILE: src/pymgrid/modules/base/timeseries/base_timeseries_module.py class BaseTimeSeriesMicrogridModule (line 8) | class BaseTimeSeriesMicrogridModule(BaseMicrogridModule): method __init__ (line 22) | def __init__(self, method _set_time_series (line 58) | def _set_time_series(self, time_series): method _sign_check (line 68) | def _sign_check(self, time_series): method _get_bounds (line 81) | def _get_bounds(self): method _set_state_dict_keys (line 90) | def _set_state_dict_keys(self): method _update_step (line 99) | def _update_step(self, reset=False): method forecast (line 103) | def forecast(self): method _done (line 124) | def _done(self): method current_obs (line 128) | def current_obs(self): method time_series (line 143) | def time_series(self): method time_series (line 156) | def time_series(self, value): method min_obs (line 163) | def min_obs(self): method max_obs (line 168) | def max_obs(self): method min_act (line 173) | def min_act(self): method max_act (line 177) | def max_act(self): method forecaster (line 181) | def forecaster(self): method set_forecaster (line 193) | def set_forecaster(self, method forecast_horizon (line 247) | def forecast_horizon(self): method forecast_horizon (line 260) | def forecast_horizon(self, value): method forecaster_increase_uncertainty (line 276) | def forecaster_increase_uncertainty(self): method forecaster_relative_noise (line 295) | def forecaster_relative_noise(self): method final_step (line 314) | def final_step(self): method final_step (line 318) | def final_step(self, value): method _state_dict (line 332) | def _state_dict(self): method serialize (line 340) | def serialize(self, dumper_stream): method serializable_state_attributes (line 345) | def serializable_state_attributes(self): method __len__ (line 348) | def __len__(self): FILE: src/pymgrid/modules/battery_module.py class BatteryModule (line 7) | class BatteryModule(BaseMicrogridModule): method __init__ (line 66) | def __init__(self, method _init_battery (line 96) | def _init_battery(self, init_charge, init_soc): method update (line 108) | def update(self, external_energy_change, as_source=False, as_sink=False): method _update_state (line 125) | def _update_state(self, energy_change): method get_cost (line 132) | def get_cost(self, energy_change): method model_transition (line 149) | def model_transition(self, energy): method transition_kwargs (line 191) | def transition_kwargs(self): method default_transition_model (line 245) | def default_transition_model(external_energy_change, efficiency, **tra... method _state_dict (line 280) | def _state_dict(self): method max_production (line 284) | def max_production(self): method max_consumption (line 289) | def max_consumption(self): method current_charge (line 294) | def current_charge(self): method soc (line 309) | def soc(self): method min_obs (line 324) | def min_obs(self): method max_obs (line 329) | def max_obs(self): method min_act (line 333) | def min_act(self): method max_act (line 337) | def max_act(self): method production_marginal_cost (line 341) | def production_marginal_cost(self): method absorption_marginal_cost (line 345) | def absorption_marginal_cost(self): method is_source (line 349) | def is_source(self): method is_sink (line 353) | def is_sink(self): method soc (line 357) | def soc(self, value): method current_charge (line 361) | def current_charge(self, value): FILE: src/pymgrid/modules/genset_module.py class GensetModule (line 8) | class GensetModule(BaseMicrogridModule): method __init__ (line 61) | def __init__(self, method step (line 100) | def step(self, action, normalized=True): method get_co2 (line 151) | def get_co2(self, production): method get_co2_cost (line 167) | def get_co2_cost(self, production): method _get_fuel_cost (line 183) | def _get_fuel_cost(self, production): method get_cost (line 188) | def get_cost(self, production): method update (line 207) | def update(self, external_energy_change, as_source=False, as_sink=False): method _reset_up_down_times (line 216) | def _reset_up_down_times(self): method _update_up_down_times (line 229) | def _update_up_down_times(self): method update_status (line 235) | def update_status(self, goal_status): method _finish_in_progress_change (line 302) | def _finish_in_progress_change(self): method _instant_up (line 313) | def _instant_up(self): method _instant_down (line 320) | def _instant_down(self): method _non_instantaneous_update (line 327) | def _non_instantaneous_update(self, goal_status): method sample_action (line 348) | def sample_action(self, strict_bound=False, **kwargs): method _raise_error (line 351) | def _raise_error(self, ask_value, available_value, as_source=False, as... method next_status (line 360) | def next_status(self, goal_status): method next_max_production (line 392) | def next_max_production(self, goal_status): method next_min_production (line 409) | def next_min_production(self, goal_status): method serializable_state_attributes (line 426) | def serializable_state_attributes(self): method _state_dict (line 429) | def _state_dict(self): method current_status (line 436) | def current_status(self): method goal_status (line 451) | def goal_status(self): method max_production (line 466) | def max_production(self): method min_production (line 485) | def min_production(self): method min_obs (line 504) | def min_obs(self): method max_obs (line 508) | def max_obs(self): method min_act (line 512) | def min_act(self): method max_act (line 516) | def max_act(self): method production_marginal_cost (line 520) | def production_marginal_cost(self): method is_source (line 524) | def is_source(self): FILE: src/pymgrid/modules/grid_module.py class GridModule (line 8) | class GridModule(BaseTimeSeriesMicrogridModule): method __init__ (line 73) | def __init__(self, method _check_params (line 103) | def _check_params(self, max_import, max_export, time_series): method _get_bounds (line 125) | def _get_bounds(self): method update (line 134) | def update(self, external_energy_change, as_source=False, as_sink=False): method get_cost (line 143) | def get_cost(self, import_export, as_source, as_sink): method get_co2_cost (line 176) | def get_co2_cost(self, import_export, as_source, as_sink): method get_co2_production (line 199) | def get_co2_production(self, import_export, as_source, as_sink): method as_flex (line 230) | def as_flex(self): method as_fixed (line 239) | def as_fixed(self): method import_price (line 249) | def import_price(self): method export_price (line 262) | def export_price(self): method co2_per_kwh (line 275) | def co2_per_kwh(self): method grid_status (line 289) | def grid_status(self): method current_status (line 302) | def current_status(self): method max_production (line 315) | def max_production(self): method max_consumption (line 319) | def max_consumption(self): method production_marginal_cost (line 323) | def production_marginal_cost(self): method absorption_marginal_cost (line 327) | def absorption_marginal_cost(self): method is_source (line 331) | def is_source(self): method is_sink (line 335) | def is_sink(self): method weak_grid (line 339) | def weak_grid(self): method __repr__ (line 351) | def __repr__(self): FILE: src/pymgrid/modules/load_module.py class LoadModule (line 8) | class LoadModule(BaseTimeSeriesMicrogridModule): method __init__ (line 58) | def __init__(self, method _get_bounds (line 82) | def _get_bounds(self): method update (line 86) | def update(self, external_energy_change, as_source=False, as_sink=False): method sample_action (line 93) | def sample_action(self, strict_bound=False): method max_consumption (line 97) | def max_consumption(self): method current_load (line 101) | def current_load(self): method is_sink (line 114) | def is_sink(self): FILE: src/pymgrid/modules/module_container.py class Container (line 8) | class Container(UserDict): method __init__ (line 9) | def __init__(self, *args, **kwargs): method containers (line 14) | def containers(self): method to_list (line 25) | def to_list(self): method to_dict (line 40) | def to_dict(self): method to_tuples (line 55) | def to_tuples(self): method iterlist (line 71) | def iterlist(self): method iterdict (line 84) | def iterdict(self): method get_attrs (line 97) | def get_attrs(self, *attrs, unique=False, as_pandas=True): method dir_additions (line 197) | def dir_additions(self): method __getitem__ (line 209) | def __getitem__(self, item): method __getattr__ (line 220) | def __getattr__(self, item): method __len__ (line 228) | def __len__(self): method __repr__ (line 231) | def __repr__(self): method __dir__ (line 237) | def __dir__(self): method __contains__ (line 242) | def __contains__(self, item): class ModuleContainer (line 246) | class ModuleContainer(Container): method __init__ (line 285) | def __init__(self, modules): method _get_types_by_name (line 297) | def _get_types_by_name(self): method _set_midlevel (line 300) | def _set_midlevel(self): method names (line 317) | def names(self): method containers (line 321) | def containers(self): class ModuleList (line 325) | class ModuleList(UserList): method item (line 326) | def item(self): method to_list (line 345) | def to_list(self): function get_subcontainers (line 355) | def get_subcontainers(modules): FILE: src/pymgrid/modules/renewable_module.py class RenewableModule (line 8) | class RenewableModule(BaseTimeSeriesMicrogridModule): method __init__ (line 61) | def __init__(self, method update (line 86) | def update(self, external_energy_change, as_source=False, as_sink=False): method max_production (line 96) | def max_production(self): method current_renewable (line 100) | def current_renewable(self): method is_source (line 113) | def is_source(self): FILE: src/pymgrid/modules/unbalanced_energy_module.py class UnbalancedEnergyModule (line 7) | class UnbalancedEnergyModule(BaseMicrogridModule): method __init__ (line 13) | def __init__(self, method update (line 28) | def update(self, external_energy_change, as_source=False, as_sink=False): method get_cost (line 38) | def get_cost(self, energy_amount, as_source, as_sink): method _state_dict (line 72) | def _state_dict(self): method state (line 76) | def state(self): method min_obs (line 80) | def min_obs(self): method max_obs (line 84) | def max_obs(self): method min_act (line 88) | def min_act(self): method max_act (line 92) | def max_act(self): method max_production (line 96) | def max_production(self): method max_consumption (line 100) | def max_consumption(self): method is_source (line 104) | def is_source(self): method is_sink (line 108) | def is_sink(self): method production_marginal_cost (line 112) | def production_marginal_cost(self): method absorption_marginal_cost (line 116) | def absorption_marginal_cost(self): FILE: src/pymgrid/utils/DataGenerator.py function return_underlying_data (line 30) | def return_underlying_data(microgrid): class NoisyPVData (line 63) | class NoisyPVData: method __init__ (line 64) | def __init__(self, pv_data = None,file_name = None): method import_file (line 91) | def import_file(self,file_name): method data_munge (line 94) | def data_munge(self, verbose=False): method _add_feature_columns (line 124) | def _add_feature_columns(self, num_feature_functions=1, period_scale=1... method max_min_curve_interpolate (line 178) | def max_min_curve_interpolate(self, num_feature_functions=1, method most_light_curve_eval (line 253) | def most_light_curve_eval(self, max_min, cumulative_hours=None, day_ho... method _sample_parabola (line 307) | def _sample_parabola(self,noise_type, noise_parameters, verbose, push_... method sample (line 409) | def sample(self, method _check_sample (line 505) | def _check_sample(self, stacked_data, verbose=False): method plot (line 532) | def plot(self, stacked_data, days_to_plot=(0,10), class NoisyLoadData (line 595) | class NoisyLoadData: method __init__ (line 596) | def __init__(self, load_data=None, file_name=None): method _import_file (line 622) | def _import_file(self, file_name): method data_munge (line 625) | def data_munge(self, verbose=False): method sample (line 647) | def sample(self, distribution='gaussian', load_variance_scale=1., retu... method _check_sample (line 690) | def _check_sample(self,stacked_data,verbose=False): method plot (line 715) | def plot(self, sample, days_to_plot=(0, 10)): class NoisyGridData (line 727) | class NoisyGridData: method __init__ (line 728) | def __init__(self,grid_data,dist_type = 'markov'): method learn_distribution (line 747) | def learn_distribution(self): method sample (line 785) | def sample(self): class SampleGenerator (line 811) | class SampleGenerator: method __init__ (line 812) | def __init__(self, microgrid, **forecast_args): method create_forecasts (line 826) | def create_forecasts(self, pv_args=None, load_args=None, preset_to_use... method test_args (line 864) | def test_args(self, iters_per_set = 3): method validate_forecasts (line 886) | def validate_forecasts(self, forecasts=None, aggregate=False): method mape (line 900) | def mape(self, actual_vals, forecast_vals): method sample_from_forecasts (line 919) | def sample_from_forecasts(self, n_samples=10, **sampling_args): method plot (line 957) | def plot(self, var='load', days_to_plot=(0, 10), original=True, foreca... class ForecastArgSet (line 993) | class ForecastArgSet(dict): method __init__ (line 994) | def __init__(self, pv_param_set=None, load_param_set=None, preset_to_u... method update_with_mape (line 1010) | def update_with_mape(self, mape): method get_preset (line 1016) | def get_preset(self,forecast_accuracy=50): method __eq__ (line 1050) | def __eq__(self, other): method __lt__ (line 1056) | def __lt__(self, other): method __gt__ (line 1062) | def __gt__(self, other): class ForecastArgs (line 1068) | class ForecastArgs: method __init__ (line 1069) | def __init__(self, num_pv_noise_params_0, num_pv_std_ratio, num_load_v... method pv_parameters (line 1078) | def pv_parameters(self,num_noise_params_0, num_std_ratio, num_push_pea... method load_parameters (line 1096) | def load_parameters(self,num_load_variance_scale, max_load_var_scale=2.): method combine_sets (line 1103) | def combine_sets(self, pv_params, load_params): FILE: src/pymgrid/utils/logger.py class ModularLogger (line 7) | class ModularLogger(UserDict): method __init__ (line 8) | def __init__(self, *args, **kwargs): method flush (line 12) | def flush(self): method log (line 18) | def log(self, **log_dict): method to_dict (line 30) | def to_dict(self): method raw (line 33) | def raw(self): method to_frame (line 36) | def to_frame(self): method serialize (line 39) | def serialize(self, key): method __len__ (line 42) | def __len__(self): method from_raw (line 46) | def from_raw(cls, raw): FILE: src/pymgrid/utils/ray.py function ray_decorator (line 5) | def ray_decorator(func): FILE: src/pymgrid/utils/serialize.py function add_pymgrid_yaml_representers (line 10) | def add_pymgrid_yaml_representers(): function dump_data (line 24) | def dump_data(data_dict, stream, yaml_tag): function add_path_to_arr_like (line 32) | def add_path_to_arr_like(data_dict, path, yaml_tag): function add_numpy_pandas_representers (line 45) | def add_numpy_pandas_representers(): function add_numpy_pandas_constructors (line 52) | def add_numpy_pandas_constructors(): function _numpy_represent_floating (line 57) | def _numpy_represent_floating(dumper, data): function _numpy_represent_int (line 61) | def _numpy_represent_int(dumper, data): function _numpy_arr_representer (line 65) | def _numpy_arr_representer(dumper, data): function _pandas_df_representer (line 69) | def _pandas_df_representer(dumper, data): function _arr_representer (line 73) | def _arr_representer(dumper, data, r_type): function _dump_representation (line 84) | def _dump_representation(data, path, stream_loc): function _pandas_df_constructor (line 91) | def _pandas_df_constructor(loader, node): function _numpy_arr_constructor (line 108) | def _numpy_arr_constructor(loader, node): class NDArraySubclass (line 115) | class NDArraySubclass(np.ndarray): method __new__ (line 120) | def __new__(cls, input_array, path=None): method __array_finalize__ (line 125) | def __array_finalize__(self, obj): FILE: src/pymgrid/utils/space.py class _PymgridDict (line 10) | class _PymgridDict(Dict): method __init__ (line 11) | def __init__(self, d, act_or_obs, normalized=False, seed=None): method _extract_builtins (line 22) | def _extract_builtins(self, d, act_or_obs='act', normalized=False): method _extract_action_spaces (line 32) | def _extract_action_spaces(self, d): method _extract_observation_spaces (line 41) | def _extract_observation_spaces(self, d): method _transform_builtins (line 50) | def _transform_builtins(self, d, normalized=False): method get_attr (line 77) | def get_attr(self, attr): method low (line 81) | def low(self): method high (line 85) | def high(self): method shape (line 89) | def shape(self): method shape (line 93) | def shape(self, value): method __getattr__ (line 99) | def __getattr__(self, item): class _PymgridSpace (line 111) | class _PymgridSpace(Space): method contains (line 116) | def contains(self, x): method sample (line 137) | def sample(self, normalized=False): method _shape_check (line 142) | def _shape_check(self, val, func): method normalize (line 150) | def normalize(self, val): method denormalize (line 154) | def denormalize(self, val): method normalized (line 158) | def normalized(self): method unnormalized (line 162) | def unnormalized(self): method __getitem__ (line 165) | def __getitem__(self, item): method __repr__ (line 173) | def __repr__(self): method __eq__ (line 176) | def __eq__(self, other): class ModuleSpace (line 183) | class ModuleSpace(_PymgridSpace): method __init__ (line 184) | def __init__(self, unnormalized_low, unnormalized_high, shape=None, dt... method normalize (line 207) | def normalize(self, val): method denormalize (line 220) | def denormalize(self, val): method _bounds_check (line 233) | def _bounds_check(self, val, low, high): class MicrogridSpace (line 242) | class MicrogridSpace(_PymgridSpace): method __init__ (line 243) | def __init__(self, module_space_dict, act_or_obs, seed=None): method _get_spread (line 259) | def _get_spread(self): method normalize (line 272) | def normalize(self, val): method denormalize (line 283) | def denormalize(self, val): method dict_op (line 294) | def dict_op(first, second, op): FILE: tests/control/data_generation/test_data_generator.py function create_pv_test_set (line 8) | def create_pv_test_set(): class TestNoisyPV (line 22) | class TestNoisyPV(unittest.TestCase): method setUp (line 23) | def setUp(self): method test_init (line 29) | def test_init(self): method test_data_munge (line 35) | def test_data_munge(self): method test_add_feature_columns (line 46) | def test_add_feature_columns(self): class TestNoisyGrid (line 68) | class TestNoisyGrid(unittest.TestCase): method setUp (line 70) | def setUp(self) -> None: method test_init (line 84) | def test_init(self): method test_bad_grid_data (line 92) | def test_bad_grid_data(self): method test_learn_distribution_always_on_naive (line 113) | def test_learn_distribution_always_on_naive(self): method test_learn_distribution_always_on_markov (line 121) | def test_learn_distribution_always_on_markov(self): method test_learn_distribution_with_outages_naive (line 130) | def test_learn_distribution_with_outages_naive(self): method test_learn_distribution_with_outages_markov (line 138) | def test_learn_distribution_with_outages_markov(self): method test_sample_always_on_naive (line 147) | def test_sample_always_on_naive(self): method test_sample_always_on_markov (line 153) | def test_sample_always_on_markov(self): method test_sample_with_outages_naive (line 159) | def test_sample_with_outages_naive(self): method test_sample_with_outages_markov (line 178) | def test_sample_with_outages_markov(self): class TestNoisyLoad (line 202) | class TestNoisyLoad(unittest.TestCase): method setUp (line 203) | def setUp(self) -> None: method test_init (line 211) | def test_init(self): method test_data_munge (line 216) | def test_data_munge(self): FILE: tests/control/test_mpc.py class TestMPC (line 9) | class TestMPC(TestCase): method test_init (line 10) | def test_init(self): method test_run_with_load_pv_battery_grid (line 16) | def test_run_with_load_pv_battery_grid(self): method test_run_with_load_pv_battery_genset (line 36) | def test_run_with_load_pv_battery_genset(self): method test_run_twice_with_load_pv_battery_genset (line 56) | def test_run_twice_with_load_pv_battery_genset(self): method test_run_with_load_pv_battery_grid_different_names (line 82) | def test_run_with_load_pv_battery_grid_different_names(self): FILE: tests/control/test_rbc.py class TestRBC (line 9) | class TestRBC(TestCase): method setUp (line 10) | def setUp(self) -> None: method test_init (line 13) | def test_init(self): method test_priority_list (line 18) | def test_priority_list(self): method test_run_once (line 25) | def test_run_once(self): method test_reset_after_run (line 38) | def test_reset_after_run(self): FILE: tests/envs/test_discrete.py class TestDiscreteEnv (line 10) | class TestDiscreteEnv(TestCase): method test_init_from_microgrid (line 12) | def test_init_from_microgrid(self): method test_init_from_modules (line 23) | def test_init_from_modules(self): class TestDiscreteEnvScenario (line 35) | class TestDiscreteEnvScenario(TestCase): method setUp (line 38) | def setUp(self) -> None: method test_run_once (line 41) | def test_run_once(self): method test_reset_after_run (line 51) | def test_reset_after_run(self): method test_run_again_after_reset (line 57) | def test_run_again_after_reset(self): method test_action_space (line 73) | def test_action_space(self): method test_simple_observation_keys (line 82) | def test_simple_observation_keys(self): class TestDiscreteEnvScenario1 (line 98) | class TestDiscreteEnvScenario1(TestDiscreteEnvScenario): class TestDiscreteEnvScenario2 (line 102) | class TestDiscreteEnvScenario2(TestDiscreteEnvScenario): class TestDiscreteEnvScenario3 (line 106) | class TestDiscreteEnvScenario3(TestDiscreteEnvScenario): class TestDiscreteEnvScenario4 (line 110) | class TestDiscreteEnvScenario4(TestDiscreteEnvScenario): class TestDiscreteEnvScenario5 (line 114) | class TestDiscreteEnvScenario5(TestDiscreteEnvScenario): class TestDiscreteEnvScenario6 (line 118) | class TestDiscreteEnvScenario6(TestDiscreteEnvScenario): class TestDiscreteEnvScenario47 (line 122) | class TestDiscreteEnvScenario47(TestDiscreteEnvScenario): class TestDiscreteEnvScenario8 (line 126) | class TestDiscreteEnvScenario8(TestDiscreteEnvScenario): class TestDiscreteEnvScenario9 (line 130) | class TestDiscreteEnvScenario9(TestDiscreteEnvScenario): class TestDiscreteEnvScenario10 (line 134) | class TestDiscreteEnvScenario10(TestDiscreteEnvScenario): class TestDiscreteEnvScenario11 (line 138) | class TestDiscreteEnvScenario11(TestDiscreteEnvScenario): class TestDiscreteEnvScenario12 (line 142) | class TestDiscreteEnvScenario12(TestDiscreteEnvScenario): class TestDiscreteEnvScenario13 (line 146) | class TestDiscreteEnvScenario13(TestDiscreteEnvScenario): class TestDiscreteEnvScenario14 (line 150) | class TestDiscreteEnvScenario14(TestDiscreteEnvScenario): class TestDiscreteEnvScenario15 (line 154) | class TestDiscreteEnvScenario15(TestDiscreteEnvScenario): class TestDiscreteEnvScenario16 (line 158) | class TestDiscreteEnvScenario16(TestDiscreteEnvScenario): class TestDiscreteEnvScenario17 (line 162) | class TestDiscreteEnvScenario17(TestDiscreteEnvScenario): class TestDiscreteEnvScenario18 (line 166) | class TestDiscreteEnvScenario18(TestDiscreteEnvScenario): class TestDiscreteEnvScenario19 (line 170) | class TestDiscreteEnvScenario19(TestDiscreteEnvScenario): class TestDiscreteEnvScenario20 (line 174) | class TestDiscreteEnvScenario20(TestDiscreteEnvScenario): class TestDiscreteEnvScenario21 (line 178) | class TestDiscreteEnvScenario21(TestDiscreteEnvScenario): class TestDiscreteEnvScenario22 (line 182) | class TestDiscreteEnvScenario22(TestDiscreteEnvScenario): class TestDiscreteEnvScenario23 (line 186) | class TestDiscreteEnvScenario23(TestDiscreteEnvScenario): class TestDiscreteEnvScenario24 (line 190) | class TestDiscreteEnvScenario24(TestDiscreteEnvScenario): FILE: tests/envs/test_trajectory.py class TestTrajectory (line 9) | class TestTrajectory(TestCase): method check_initial_final_steps (line 11) | def check_initial_final_steps(self, method test_none_trajectory (line 29) | def test_none_trajectory(self): method test_deterministic_trajectory (line 35) | def test_deterministic_trajectory(self): method test_stochastic_trajectory (line 47) | def test_stochastic_trajectory(self): method test_bad_trajectory_out_of_range (line 74) | def test_bad_trajectory_out_of_range(self): method test_bad_trajectory_bad_signature (line 84) | def test_bad_trajectory_bad_signature(self): method test_bad_trajectory_initial_gt_final (line 94) | def test_bad_trajectory_initial_gt_final(self): method test_bad_trajectory_scalar_output (line 104) | def test_bad_trajectory_scalar_output(self): method test_bad_trajectory_too_many_outputs (line 114) | def test_bad_trajectory_too_many_outputs(self): method test_bad_trajectory_wrong_output_types (line 124) | def test_bad_trajectory_wrong_output_types(self): method test_correct_trajectory_length (line 134) | def test_correct_trajectory_length(self): method test_trajectory_serialization (line 158) | def test_trajectory_serialization(self): FILE: tests/helpers/genset_module_testing_utils.py function get_genset (line 14) | def get_genset(default_parameters=None, **new_params): function normalize_production (line 20) | def normalize_production(production, max_production=None): FILE: tests/helpers/modular_microgrid.py function get_modular_microgrid (line 14) | def get_modular_microgrid(remove_modules=(), FILE: tests/helpers/test_case.py class TestCase (line 6) | class TestCase(unittest.TestCase): method assertEqual (line 7) | def assertEqual(self, first, second, msg=None) -> None: FILE: tests/microgrid/modules/container_tests/test_container.py class TestContainer (line 5) | class TestContainer(TestCase): method test_container_init (line 6) | def test_container_init(self): FILE: tests/microgrid/modules/conversion_test/test_modular_conversion.py class TestToModular (line 6) | class TestToModular(TestCase): method setUp (line 7) | def setUp(self) -> None: method is_weak_grid (line 19) | def is_weak_grid(microgrid): method is_strong_grid (line 23) | def is_strong_grid(microgrid): method test_weak_grid_conversion_success (line 26) | def test_weak_grid_conversion_success(self): method test_genset_only (line 31) | def test_genset_only(self): FILE: tests/microgrid/modules/forecaster_tests/test_forecaster.py function get_test_inputs (line 23) | def get_test_inputs(n=None, state_components=None, negative=False): class TestOracleForecaster (line 35) | class TestOracleForecaster(TestCase): method setUp (line 36) | def setUp(self) -> None: method test_positive_inputs (line 40) | def test_positive_inputs(self): method test_negative_inputs (line 45) | def test_negative_inputs(self): class TestGaussianNoiseForecaster (line 51) | class TestGaussianNoiseForecaster(TestCase): method test_single_forecast_positive (line 52) | def test_single_forecast_positive(self): method test_single_forecast_positive_high_std (line 62) | def test_single_forecast_positive_high_std(self): method test_single_forecast_negative (line 72) | def test_single_forecast_negative(self): method test_single_forecast_negative_high_std (line 82) | def test_single_forecast_negative_high_std(self): method test_multiple_forecast_positive (line 92) | def test_multiple_forecast_positive(self): method test_multiple_forecast_positive_high_std (line 104) | def test_multiple_forecast_positive_high_std(self): method test_multiple_forecast_negative (line 116) | def test_multiple_forecast_negative(self): method test_multiple_forecast_negative_high_std (line 128) | def test_multiple_forecast_negative_high_std(self): method test_increasing_uncertainty_positive (line 140) | def test_increasing_uncertainty_positive(self): method test_increasing_uncertainty_negative (line 153) | def test_increasing_uncertainty_negative(self): method test_bad_shape (line 167) | def test_bad_shape(self): class TestUserDefinedForecaster (line 183) | class TestUserDefinedForecaster(TestCase): method setUp (line 184) | def setUp(self) -> None: method oracle_scalar_forecaster (line 188) | def oracle_scalar_forecaster(val_c, val_c_n, n): method get_oracle_forecaster (line 191) | def get_oracle_forecaster(self, negative=False): method get_obs_space (line 195) | def get_obs_space(self, negative=False): method test_user_defined_oracle_positive (line 205) | def test_user_defined_oracle_positive(self): method test_user_defined_oracle_negative (line 213) | def test_user_defined_oracle_negative(self): method test_scalar_forecaster (line 221) | def test_scalar_forecaster(self): method test_vectorized_forecaster_bad_output_shape (line 229) | def test_vectorized_forecaster_bad_output_shape(self): method test_vectorized_forecaster_bad_output_type (line 238) | def test_vectorized_forecaster_bad_output_type(self): method test_vectorized_forecaster_bad_output_signs (line 246) | def test_vectorized_forecaster_bad_output_signs(self): method test_bad_forecaster (line 260) | def test_bad_forecaster(self): method test_scalar_forecaster_bad_output_shape (line 268) | def test_scalar_forecaster_bad_output_shape(self): class TestGetForecaster (line 281) | class TestGetForecaster(TestCase): method setUp (line 282) | def setUp(self) -> None: method test_user_defined_forecaster (line 286) | def test_user_defined_forecaster(self): method test_oracle_forecaster (line 294) | def test_oracle_forecaster(self): method test_no_forecaster (line 298) | def test_no_forecaster(self): method test_gaussian_noise_forecaster_init (line 302) | def test_gaussian_noise_forecaster_init(self): method test_gaussian_noise_forecaster_increase_uncertainty_init (line 308) | def test_gaussian_noise_forecaster_increase_uncertainty_init(self): method test_gaussian_noise_forecaster_correct_size (line 315) | def test_gaussian_noise_forecaster_correct_size(self): method test_gaussian_noise_forecaster_insufficient_true_vals (line 326) | def test_gaussian_noise_forecaster_insufficient_true_vals(self): method test_gaussian_noise_forecaster_insufficient_true_vals_increasing_uncertainty (line 336) | def test_gaussian_noise_forecaster_insufficient_true_vals_increasing_u... FILE: tests/microgrid/modules/module_tests/test_genset_long_status_changes.py class TestGensetStartUp2WindDown3OnAtStartUp (line 8) | class TestGensetStartUp2WindDown3OnAtStartUp(TestCase): method setUp (line 9) | def setUp(self) -> None: method get_genset (line 12) | def get_genset(self, **new_params): method turn_on (line 17) | def turn_on(self, genset, unnormalized_production=0.): method turn_off (line 23) | def turn_off(self, genset, unnormalized_production=50.): method test_on_at_start_up (line 29) | def test_on_at_start_up(self): method test_turn_off_step_1 (line 35) | def test_turn_off_step_1(self): method test_turn_off_step_2 (line 46) | def test_turn_off_step_2(self): method test_turn_off_step_3 (line 60) | def test_turn_off_step_3(self): method test_turn_off_step_4_final (line 74) | def test_turn_off_step_4_final(self): method test_turn_on_after_turn_off_step_1 (line 91) | def test_turn_on_after_turn_off_step_1(self): method test_turn_on_after_turn_off_step_2 (line 118) | def test_turn_on_after_turn_off_step_2(self): method test_turn_on_after_turn_off_final (line 147) | def test_turn_on_after_turn_off_final(self): method test_turn_off_abortion (line 180) | def test_turn_off_abortion(self): method test_turn_on_abortion (line 199) | def test_turn_on_abortion(self): class TestManyStatusChanges (line 217) | class TestManyStatusChanges(TestCase): method test_many_status_changes (line 219) | def test_many_status_changes(self): FILE: tests/microgrid/modules/module_tests/test_genset_module.py class TestGensetModule (line 7) | class TestGensetModule(TestCase): method setUp (line 8) | def setUp(self) -> None: method get_genset (line 12) | def get_genset(self, **new_params): method test_init_start_up (line 15) | def test_init_start_up(self): method test_get_cost_linear (line 21) | def test_get_cost_linear(self): method test_get_cost_callable (line 30) | def test_get_cost_callable(self): method test_step_out_of_range_goal_status (line 39) | def test_step_out_of_range_goal_status(self): method test_step_out_of_normalized_range_production (line 46) | def test_step_out_of_normalized_range_production(self): method test_step_incorrect_action_shape (line 53) | def test_step_incorrect_action_shape(self): method test_step_unnormalized_production (line 64) | def test_step_unnormalized_production(self): method test_step_normalized_production (line 78) | def test_step_normalized_production(self): method test_step_immediate_status_change (line 93) | def test_step_immediate_status_change(self): method test_step_genset_off_production_request_error_raise (line 110) | def test_step_genset_off_production_request_error_raise(self): method test_step_genset_off_production_request_no_error_raise (line 124) | def test_step_genset_off_production_request_no_error_raise(self): method test_step_genset_production_request_out_of_range_no_error_raise (line 138) | def test_step_genset_production_request_out_of_range_no_error_raise(se... FILE: tests/microgrid/modules/module_tests/test_genset_module_start_up_1_wind_down_1.py class TestGensetStartUp1WindDown0OffAtStartUp (line 7) | class TestGensetStartUp1WindDown0OffAtStartUp(TestCase): method setUp (line 8) | def setUp(self) -> None: method get_genset (line 12) | def get_genset(self, new=False, **new_params): method warm_up (line 22) | def warm_up(self, genset): method test_off_at_start_up (line 29) | def test_off_at_start_up(self): method test_warm_up (line 35) | def test_warm_up(self): method test_step_start_up_1_exception (line 46) | def test_step_start_up_1_exception(self): method test_step_start_up_1_no_exception (line 61) | def test_step_start_up_1_no_exception(self): method test_start_up_1_request_below_min_exception_raise (line 76) | def test_start_up_1_request_below_min_exception_raise(self): method test_start_up_1_request_below_min_no_exception (line 85) | def test_start_up_1_request_below_min_no_exception(self): method test_start_up_1_then_shut_down_exception_raise (line 100) | def test_start_up_1_then_shut_down_exception_raise(self): method test_start_up_1_then_shut_down_no_exception (line 110) | def test_start_up_1_then_shut_down_no_exception(self): class TestGensetStartUp1WindDown0OnAtStartUp (line 126) | class TestGensetStartUp1WindDown0OnAtStartUp(TestCase): method setUp (line 127) | def setUp(self) -> None: method get_genset (line 131) | def get_genset(self, new=False, **new_params): method warm_up (line 140) | def warm_up(self, genset): method test_on_at_start_up (line 147) | def test_on_at_start_up(self): method test_warm_up (line 153) | def test_warm_up(self): method test_shut_down (line 164) | def test_shut_down(self): FILE: tests/microgrid/modules/module_tests/test_load_module.py class TestLoadModuleNoForecasting (line 13) | class TestLoadModuleNoForecasting(TestTimeseriesModuleNoForecasting): method get_module (line 19) | def get_module(self): method test_init_current_load (line 22) | def test_init_current_load(self): method test_step (line 26) | def test_step(self): class TestLoadModuleForecasting (line 38) | class TestLoadModuleForecasting(TestTimeseriesModuleForecasting): method get_module (line 43) | def get_module(self): method test_step (line 46) | def test_step(self): class TestLoadModuleForecastingNegativeVals (line 59) | class TestLoadModuleForecastingNegativeVals(TestTimeSeriesModuleForecast... class TestLoadModuleNoForecastingNegativeVals (line 64) | class TestLoadModuleNoForecastingNegativeVals(TestTimeSeriesModuleNoFore... FILE: tests/microgrid/modules/module_tests/test_renewable_module.py class TestRenewableModuleNoForecasting (line 12) | class TestRenewableModuleNoForecasting(TestTimeseriesModuleNoForecasting): method get_module (line 16) | def get_module(self): method test_init_current_renewable (line 19) | def test_init_current_renewable(self): method test_step (line 23) | def test_step(self): class TestRenewableModuleForecasting (line 38) | class TestRenewableModuleForecasting(TestTimeseriesModuleForecasting): method get_module (line 42) | def get_module(self): method test_step (line 45) | def test_step(self): class TestRenewableModuleForecastingNegativeVals (line 60) | class TestRenewableModuleForecastingNegativeVals(TestTimeSeriesModuleFor... class TestRenewableModuleNoForecastingNegativeVals (line 65) | class TestRenewableModuleNoForecastingNegativeVals(TestTimeSeriesModuleN... FILE: tests/microgrid/modules/module_tests/timeseries_modules.py class TestTimeseriesModule (line 10) | class TestTimeseriesModule(TestCase): method setUp (line 16) | def setUp(self) -> None: method _get_module_time_series (line 20) | def _get_module_time_series(self): method _get_time_series (line 23) | def _get_time_series(self): method get_module (line 28) | def get_module(self): method test_action_space (line 31) | def test_action_space(self): method test_observation_space (line 41) | def test_observation_space(self): method test_observations_in_observation_space (line 52) | def test_observations_in_observation_space(self): class TestTimeseriesModuleNoForecasting (line 72) | class TestTimeseriesModuleNoForecasting(TestTimeseriesModule): method test_init (line 75) | def test_init(self): class TestTimeseriesModuleForecasting (line 82) | class TestTimeseriesModuleForecasting(TestTimeseriesModule): method test_init (line 85) | def test_init(self): class TestTimeSeriesModuleNoForecastingNegativeVals (line 93) | class TestTimeSeriesModuleNoForecastingNegativeVals(TestTimeseriesModule... method _get_module_time_series (line 94) | def _get_module_time_series(self): class TestTimeSeriesModuleForecastingNegativeVals (line 98) | class TestTimeSeriesModuleForecastingNegativeVals(TestTimeseriesModuleFo... method _get_module_time_series (line 99) | def _get_module_time_series(self): FILE: tests/microgrid/serialize/test_microgrid_serialization.py class TestMicrogridSerialization (line 9) | class TestMicrogridSerialization(TestCase): method test_serialize_no_modules (line 10) | def test_serialize_no_modules(self): method test_serialize_with_renewable (line 17) | def test_serialize_with_renewable(self): FILE: tests/microgrid/test_microgrid.py class TestMicrogrid (line 12) | class TestMicrogrid(TestCase): method test_from_scenario (line 13) | def test_from_scenario(self): method test_empty_action_without_load (line 22) | def test_empty_action_without_load(self): method test_empty_action_with_load (line 32) | def test_empty_action_with_load(self): method test_action_space (line 43) | def test_action_space(self): method test_action_space_normalize (line 53) | def test_action_space_normalize(self): method test_action_space_denormalize (line 64) | def test_action_space_denormalize(self): method test_sample_action (line 75) | def test_sample_action(self): method test_sample_action_all_modules_populated (line 88) | def test_sample_action_all_modules_populated(self): method test_current_step (line 104) | def test_current_step(self): method test_current_step_after_reset (line 114) | def test_current_step_after_reset(self): method test_set_module_attr_forecast_horizon (line 124) | def test_set_module_attr_forecast_horizon(self): method test_set_module_attr_bad_attr_name (line 137) | def test_set_module_attr_bad_attr_name(self): method test_get_cost_info (line 143) | def test_get_cost_info(self): method test_set_initial_step (line 162) | def test_set_initial_step(self): class TestMicrogridLoadPV (line 188) | class TestMicrogridLoadPV(TestCase): method setUp (line 189) | def setUp(self): method set_ts (line 194) | def set_ts(self): method set_microgrid (line 198) | def set_microgrid(self): method test_populated_correctly (line 203) | def test_populated_correctly(self): method test_current_load_correct (line 208) | def test_current_load_correct(self): method test_current_pv_correct (line 216) | def test_current_pv_correct(self): method test_sample_action (line 224) | def test_sample_action(self): method test_sample_action_with_flex (line 228) | def test_sample_action_with_flex(self): method test_state_dict (line 235) | def test_state_dict(self): method test_state_series (line 243) | def test_state_series(self): method test_to_nonmodular (line 250) | def test_to_nonmodular(self): method check_step (line 263) | def check_step(self, microgrid, step_number=0): method test_run_one_step (line 311) | def test_run_one_step(self): method test_run_n_steps (line 315) | def test_run_n_steps(self): class TestMicrogridLoadExcessPV (line 322) | class TestMicrogridLoadExcessPV(TestMicrogridLoadPV): method set_ts (line 324) | def set_ts(self): class TestMicrogridPVExcessLoad (line 330) | class TestMicrogridPVExcessLoad(TestMicrogridLoadPV): method set_ts (line 332) | def set_ts(self): class TestMicrogridTwoLoads (line 338) | class TestMicrogridTwoLoads(TestMicrogridLoadPV): method set_microgrid (line 339) | def set_microgrid(self): class TestMicrogridTwoPV (line 352) | class TestMicrogridTwoPV(TestMicrogridLoadPV): method set_microgrid (line 353) | def set_microgrid(self): class TestMicrogridTwoEach (line 366) | class TestMicrogridTwoEach(TestMicrogridLoadPV): method set_microgrid (line 367) | def set_microgrid(self): class TestMicrogridManyEach (line 387) | class TestMicrogridManyEach(TestMicrogridLoadPV): method set_microgrid (line 388) | def set_microgrid(self): class TestMicrogridManyEachExcessPV (line 416) | class TestMicrogridManyEachExcessPV(TestMicrogridManyEach): method set_ts (line 417) | def set_ts(self): class TestMicrogridManyEachExcessLoad (line 423) | class TestMicrogridManyEachExcessLoad(TestMicrogridManyEach): method set_ts (line 424) | def set_ts(self): class TestMicrogridRewardShaping (line 430) | class TestMicrogridRewardShaping(TestMicrogridLoadPV): method set_microgrid (line 431) | def set_microgrid(self): method reward_shaping_func (line 440) | def reward_shaping_func(energy_info, cost_info): FILE: tests/test_microgridgenerator.py class TestMicogridGenerator (line 24) | class TestMicogridGenerator(unittest.TestCase): method setUp (line 26) | def setUp(self): method test_get_random_file (line 29) | def test_get_random_file(self): method test_scale_ts (line 39) | def test_scale_ts(self): method test_get_genset (line 45) | def test_get_genset(self): method test_get_battery (line 50) | def test_get_battery(self): method test_get_grid_price_ts (line 54) | def test_get_grid_price_ts(self): method test_get_grid (line 58) | def test_get_grid(self): method test_size_mg (line 62) | def test_size_mg(self): method test_size_genset (line 68) | def test_size_genset(self): method test_size_battery (line 71) | def test_size_battery(self): method test_generate_microgrid (line 76) | def test_generate_microgrid(self): method test_create_microgrid (line 81) | def test_create_microgrid(self): FILE: tests/test_nonmodular_microgrid.py class TestNonmodularMicrogrid (line 16) | class TestNonmodularMicrogrid(unittest.TestCase): method setUp (line 17) | def setUp(self): method random_control (line 22) | def random_control(): method test_set_horizon (line 30) | def test_set_horizon(self): method test_get_updated_values (line 34) | def test_get_updated_values(self): method test_forecast_all (line 38) | def test_forecast_all(self): method test_forecast_pv (line 43) | def test_forecast_pv(self): method test_forecast_load (line 48) | def test_forecast_load(self): method test_run (line 53) | def test_run(self): method test_train_test_split (line 59) | def test_train_test_split(self): method test_reset (line 63) | def test_reset(self):