OMPython icon indicating copy to clipboard operation
OMPython copied to clipboard

ModelicaSystem.simulate with csv for inputs

Open FaBiasch opened this issue 6 months ago • 2 comments

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 avatar Aug 27 '25 15:08 FaBiasch

@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 avatar Sep 05 '25 17:09 syntron

@syntron any update on this?

adeas31 avatar Dec 02 '25 21:12 adeas31