Skip to content

Commit 9c0f649

Browse files
committed
fixed dependency
1 parent a26259f commit 9c0f649

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

OMPython/OMRunner.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import stat
23
import platform
34
import subprocess
45
import shlex
@@ -16,6 +17,7 @@ class ModelicaSystemError(Exception):
1617
Exception used in ModelicaSystem and ModelicaSystemCmd classes.
1718
"""
1819

20+
1921
class ModelicaSystemRunner(object):
2022
def __init__(
2123
self,
@@ -372,8 +374,7 @@ def getOptimizationOptions(
372374

373375
raise ModelicaSystemError("Unhandled input for getOptimizationOptions()")
374376

375-
376-
def simulate(self,resultfile=None,simflags=None,overrideaux=None): # 11
377+
def simulate(self, resultfile=None, simflags=None, overrideaux=None): # 11
377378
"""
378379
This method simulates model according to the simulation options.
379380
@@ -406,15 +407,15 @@ def simulate(self,resultfile=None,simflags=None,overrideaux=None): # 11
406407
if(simflags is None):
407408
simflags=""
408409
else:
409-
simflags=" " + simflags;
410+
simflags=" " + simflags
410411

411412
if (self._override_variables or self._simulate_options_override):
412413
tmpdict=self._override_variables.copy()
413414
tmpdict.update(self._simulate_options_override)
414415
values1 = ','.join("%s=%s" % (key, val) for (key, val) in list(tmpdict.items()))
415-
override =" -override=" + values1
416+
override = " -override=" + values1
416417
else:
417-
override =""
418+
override = ""
418419
# add override flags not parameters or simulation options
419420
if overrideaux:
420421
if override:

0 commit comments

Comments
 (0)