MCPcopy Create free account
hub / github.com/ahalev/python-microgrid / add_load_params

Function add_load_params

src/pymgrid/convert/to_nonmodular_ops.py:79–86  ·  view source on GitHub ↗
(load_module, params_dict)

Source from the content-addressed store, hash-verified

77
78
79def add_load_params(load_module, params_dict):
80 params_dict['load'] = pd.DataFrame(load_module.time_series)
81 _add_to_parameters(params_dict,
82 load=-1 * load_module.min_act)
83 _add_to_control_dict(params_dict, 'load')
84 _add_to_df_actual_generation(params_dict, 'loss_load')
85 _add_to_df_actions(params_dict, 'load')
86 _add_to_df_status(params_dict, load=round(load_module.current_load, 1))
87
88
89def add_pv_params(pv_module, params_dict):

Callers 1

add_params_from_moduleFunction · 0.85

Calls 5

_add_to_parametersFunction · 0.85
_add_to_control_dictFunction · 0.85
_add_to_df_actionsFunction · 0.85
_add_to_df_statusFunction · 0.85

Tested by

no test coverage detected