OMPython
OMPython copied to clipboard
ModelicaSystem.simulate with csv for inputs
Hi,
I have the impression that a lot of progress is made with the ModelicaSystem module right now, which is great!
I have a question for the current implementation: If is use
mod = ModelicaSystem(model_path, model_name)
simargs = {'csvInput': input_file_path}
mod.simulate(resultfile=rslt_file_path, simargs=simargs)
the input csv is always overridden here. What is the proposed way to set an input via a csv file?
Thx.
@FaBiasch would it be possible for you to set the inputs (= content of the csv file) via the setInputs() method?
Else it could help to add a wrapper which uses a csv file and defines the content in self._inputs ...
@syntron any update on this?