Skip to content

Commit c7b27b0

Browse files
committed
Remove ModelicaSystem.getlinearParameters
It does not work, and its name is inconsistent with the rest of the API (note the lowercase l). I can't even tell what it was supposed to do. This closes #248
1 parent 19d9519 commit c7b27b0

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -498,19 +498,6 @@ def getParameters(self, names=None): # 5
498498
elif isinstance(names, list):
499499
return ([self.paramlist.get(x, "NotExist") for x in names])
500500

501-
def getlinearParameters(self, names=None): # 5
502-
"""
503-
This method returns dict. The key is parameter names and value is corresponding parameter value.
504-
If *name is None then the function will return dict which contain all parameter names as key and value as corresponding values. eg., getParameters()
505-
Otherwise variable number of arguments can be passed as parameter name in string format separated by commas. eg., getParameters('paraName1', 'paraName2')
506-
"""
507-
if names is None:
508-
return self.linearparameters
509-
elif isinstance(names, str):
510-
return [self.linearparameters.get(names, "NotExist")]
511-
else:
512-
return [self.linearparameters.get(x, "NotExist") for x in names]
513-
514501
def getInputs(self, names=None): # 6
515502
"""
516503
This method returns dict. The key is input names and value is corresponding input value.

0 commit comments

Comments
 (0)