Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix two spaces in simflags causing error
  • Loading branch information
ondras12345 committed Apr 25, 2025
commit aa8c118f7fa45199899a6fa4e28e41cade8b95ff
4 changes: 2 additions & 2 deletions OMPython/ModelicaSystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ def simulate(self, resultfile=None, simflags=None): # 11
raise Exception(f"Error: Application file path not found: {exe_file}")

cmd = exe_file.as_posix() + override + csvinput + r + simflags
cmd = cmd.split(" ")
cmd = [s for s in cmd.split(' ') if s]
self._run_cmd(cmd=cmd)
self.simulationFlag = True

Expand Down Expand Up @@ -1018,7 +1018,7 @@ def linearize(self, lintime=None, simflags=None): # 22
raise Exception(f"Error: Application file path not found: {exe_file}")
else:
cmd = exe_file.as_posix() + linruntime + override + csvinput + simflags
cmd = cmd.split(' ')
cmd = [s for s in cmd.split(' ') if s]
self._run_cmd(cmd=cmd)

# code to get the matrix and linear inputs, outputs and states
Expand Down