Skip to content

Commit efd7f88

Browse files
committed
[ModelicaSystem] rename lmodel => libraries
1 parent 70fe283 commit efd7f88

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

OMPython/ModelicaSystem.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def __init__(
418418
self._work_dir: OMCPath = self.setWorkDirectory(customBuildDirectory)
419419

420420
self._model_name: Optional[str] = None
421-
self._lmodel: Optional[list[str | tuple[str, str]]] = None
421+
self._libraries: Optional[list[str | tuple[str, str]]] = None
422422
self._file_name: Optional[OMCPath] = None
423423
self._variable_filter: Optional[str] = None
424424

@@ -486,8 +486,8 @@ def model(
486486
if self._file_name is not None and not self._file_name.is_file(): # if file does not exist
487487
raise IOError(f"{self._file_name} does not exist!")
488488

489-
if self._lmodel:
490-
self._loadLibrary(lmodel=self._lmodel)
489+
if self._libraries:
490+
self._loadLibrary(libraries=self._libraries)
491491
if self._file_name is not None:
492492
self._loadFile(fileName=self._file_name)
493493

@@ -506,9 +506,9 @@ def _loadFile(self, fileName: OMCPath):
506506
self.sendExpression(f'loadFile("{fileName.as_posix()}")')
507507

508508
# for loading file/package, loading model and building model
509-
def _loadLibrary(self, lmodel: list):
509+
def _loadLibrary(self, libraries: list):
510510
# load Modelica standard libraries or Modelica files if needed
511-
for element in lmodel:
511+
for element in libraries:
512512
if element is not None:
513513
if isinstance(element, str):
514514
if element.endswith(".mo"):

0 commit comments

Comments
 (0)