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

Function get_genset

tests/helpers/genset_module_testing_utils.py:14–17  ·  view source on GitHub ↗
(default_parameters=None, **new_params)

Source from the content-addressed store, hash-verified

12
13
14def get_genset(default_parameters=None, **new_params):
15 params = default_parameters.copy() if default_parameters is not None else default_params.copy()
16 params.update(new_params)
17 return GensetModule(**params), params
18
19
20def normalize_production(production, max_production=None):

Callers 8

setUpMethod · 0.90
get_gensetMethod · 0.90
setUpMethod · 0.90
get_gensetMethod · 0.90
setUpMethod · 0.90
get_gensetMethod · 0.90
get_gensetMethod · 0.90

Calls 2

GensetModuleClass · 0.90
updateMethod · 0.45

Tested by

no test coverage detected