Skip to content

Commit 4ff2504

Browse files
committed
[ModelicaSystem] rename lmodel => libraries
1 parent 8142066 commit 4ff2504

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
@@ -385,7 +385,7 @@ def __init__(
385385
self._work_dir: OMCPath = self.setWorkDirectory(customBuildDirectory)
386386

387387
self._model_name: Optional[str] = None
388-
self._lmodel: Optional[list[str | tuple[str, str]]] = None
388+
self._libraries: Optional[list[str | tuple[str, str]]] = None
389389
self._file_name: Optional[OMCPath] = None
390390
self._variable_filter: Optional[str] = None
391391

@@ -453,8 +453,8 @@ def model(
453453
if self._file_name is not None and not self._file_name.is_file(): # if file does not exist
454454
raise IOError(f"{self._file_name} does not exist!")
455455

456-
if self._lmodel:
457-
self._loadLibrary(lmodel=self._lmodel)
456+
if self._libraries:
457+
self._loadLibrary(libraries=self._libraries)
458458
if self._file_name is not None:
459459
self._loadFile(fileName=self._file_name)
460460

@@ -479,9 +479,9 @@ def _loadFile(self, fileName: OMCPath):
479479
self.sendExpression(f'loadFile("{fileName.as_posix()}")')
480480

481481
# for loading file/package, loading model and building model
482-
def _loadLibrary(self, lmodel: list):
482+
def _loadLibrary(self, libraries: list):
483483
# load Modelica standard libraries or Modelica files if needed
484-
for element in lmodel:
484+
for element in libraries:
485485
if element is not None:
486486
if isinstance(element, str):
487487
if element.endswith(".mo"):

0 commit comments

Comments
 (0)