Skip to content

Commit 56de1e7

Browse files
committed
[ModelicaSystem] fix mypy - 'n' is used two times for different variable types
1 parent cd7ae52 commit 56de1e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

OMPython/ModelicaSystem.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,9 +1477,9 @@ def load_module_from_path(module_name, file_path):
14771477
om_cmd.arg_set(key="overrideFile", val=overrideLinearFile.as_posix())
14781478

14791479
if self._has_inputs:
1480-
nameVal = self.getInputs()
1481-
for n in nameVal:
1482-
tupleList = nameVal.get(n)
1480+
nameVal = self._inputs
1481+
for name in nameVal:
1482+
tupleList = nameVal.get(name)
14831483
if tupleList is not None:
14841484
for l in tupleList:
14851485
if l[0] < float(self._simulate_options["startTime"]):

0 commit comments

Comments
 (0)