Remove second init method
Currently, a subclass of mosaik_api_v3.Simulator
will have two initialization methods: Python's __init__
and mosaik's init
. These could potentially be merged, which would be more pleasant for users using type checkers (as those will usually check whether all instance variables are initialized in __init__
where data from mosaik is not available, yet.
One of the points of having a separate initialization method is that the simulator passed to mosaik_api_v3.start_simulation
can be supplied with initialization data from the simulator file itself (and not just information from mosaik). However, it would be possible to instead pass on extra parameters to start_simulation
to the simulator class's constructor to achieve the same effect. In addition, __init__
cannot return the required meta, so this would require an additional meta
function or property on the simulator class.