Easier usage of presets from mosaik
It would be nice if the presets could be used from a mosaik scenario more easily. The mosaik simulators expect two keyword arguments on creation, the params
and the inits
. You can get both of them from the same _preset
function, but unfortunately as a tuple. So currently, I am doing this:
battery = pysim.Battery(**dict(zip(("params", "inits"), battery_preset(pn_max_kw=100.0))))
For example, the _preset
functions could be extended to support a mosaik
keyword argument that would return the dictionary directly, shortening this to
battery = pysim.Battery(**battery_preset(pn_max_kw=100.0, mosaik=True))
(or additional battery_preset_mosaik
functions could be added, instead). Yet another solution would be to allow passing in the preset kwargs into create
instead of params
and inits
.
I would be willing to do this, if wanted.