According to the docs, OMSimulatorPython offers also an object-oriented API. This is great because it feels a little more pythonic to use.
The methods in the Model class has simulation control methods that mirror these, with the exception ofstepUntil(stopTime), which apparently has been overlooked.
Steps to reproduce the behavior
Follow the Python OO API example slightly below the link above, only instead of model.simulate(), use model.stepUntil(0.1), which should be equivalent.
Instead, you encounter AttributeError: 'Model' object has no attribute 'stepUntil'
Expected behavior
Simulation runs until time 0.1.
NB: I know about the workaround of falling back to the other kind of API, but this mixes APIs which I don't consider a good practice. (oms.OMSimulator().stepUntil('model', 0.1))
Description
According to the docs, OMSimulatorPython offers also an object-oriented API. This is great because it feels a little more pythonic to use.
The methods in the
Model
class has simulation control methods that mirror these, with the exception ofstepUntil(stopTime)
, which apparently has been overlooked.Steps to reproduce the behavior
Follow the Python OO API example slightly below the link above, only instead of
model.simulate()
, usemodel.stepUntil(0.1)
, which should be equivalent. Instead, you encounterAttributeError: 'Model' object has no attribute 'stepUntil'
Expected behavior
Simulation runs until time 0.1.
NB: I know about the workaround of falling back to the other kind of API, but this mixes APIs which I don't consider a good practice. (
oms.OMSimulator().stepUntil('model', 0.1)
)Version and OS