Skip to content

Commit 9f63e65

Browse files
committed
Rename _variableFilter to _variable_filter
1 parent f9bee56 commit 9f63e65

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

OMPython/ModelicaSystem.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def __init__(
391391
self._simulated = False # True if the model has already been simulated
392392
self._csvFile: Optional[pathlib.Path] = None # for storing inputs condition
393393
self._result_file: Optional[pathlib.Path] = None # for storing result file
394-
self._variableFilter = variableFilter
394+
self._variable_filter = variableFilter
395395

396396
if self._file_name is not None and not self._file_name.is_file(): # if file does not exist
397397
raise IOError(f"{self._file_name} does not exist!")
@@ -472,10 +472,10 @@ def getWorkDirectory(self) -> pathlib.Path:
472472

473473
def buildModel(self, variableFilter: Optional[str] = None):
474474
if variableFilter is not None:
475-
self._variableFilter = variableFilter
475+
self._variable_filter = variableFilter
476476

477-
if self._variableFilter is not None:
478-
varFilter = f'variableFilter="{self._variableFilter}"'
477+
if self._variable_filter is not None:
478+
varFilter = f'variableFilter="{self._variable_filter}"'
479479
else:
480480
varFilter = 'variableFilter=".*"'
481481

0 commit comments

Comments
 (0)