Skip to content

Commit fc12bd2

Browse files
committed
[ModelicaSystem] rename lmodel => libraries
1 parent f257481 commit fc12bd2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

OMPython/ModelicaSystem.py

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

377377
self._model_name: Optional[str] = None
378-
self._lmodel: Optional[list[str | tuple[str, str]]] = None
378+
self._libraries: Optional[list[str | tuple[str, str]]] = None
379379
self._file_name: Optional[OMCPath] = None
380380
self._variable_filter: Optional[str] = None
381381

@@ -443,8 +443,8 @@ def model(
443443
if self._file_name is not None and not self._file_name.is_file(): # if file does not exist
444444
raise IOError(f"{self._file_name} does not exist!")
445445

446-
if self._lmodel:
447-
self._loadLibrary(lmodel=self._lmodel)
446+
if self._libraries:
447+
self._loadLibrary(libraries=self._libraries)
448448
if self._file_name is not None:
449449
self._loadFile(fileName=self._file_name)
450450

@@ -463,9 +463,9 @@ def _loadFile(self, fileName: OMCPath):
463463
self.sendExpression(f'loadFile("{fileName.as_posix()}")')
464464

465465
# for loading file/package, loading model and building model
466-
def _loadLibrary(self, lmodel: list):
466+
def _loadLibrary(self, libraries: list):
467467
# load Modelica standard libraries or Modelica files if needed
468-
for element in lmodel:
468+
for element in libraries:
469469
if element is not None:
470470
if isinstance(element, str):
471471
if element.endswith(".mo"):

0 commit comments

Comments
 (0)