Skip to content

Commit aa8c118

Browse files
committed
Fix two spaces in simflags causing error
1 parent 1c50417 commit aa8c118

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ def simulate(self, resultfile=None, simflags=None): # 11
589589
raise Exception(f"Error: Application file path not found: {exe_file}")
590590

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

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

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

0 commit comments

Comments
 (0)