Skip to content

Commit 19472b3

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 4c89ea3 commit 19472b3

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
@@ -445,19 +445,6 @@ def getParameters(self, names=None): # 5
445445
elif isinstance(names, list):
446446
return ([self.paramlist.get(x, "NotExist") for x in names])
447447

448-
def getlinearParameters(self, names=None): # 5
449-
"""
450-
This method returns dict. The key is parameter names and value is corresponding parameter value.
451-
If *name is None then the function will return dict which contain all parameter names as key and value as corresponding values. eg., getParameters()
452-
Otherwise variable number of arguments can be passed as parameter name in string format separated by commas. eg., getParameters('paraName1', 'paraName2')
453-
"""
454-
if names is None:
455-
return self.linearparameters
456-
elif isinstance(names, str):
457-
return [self.linearparameters.get(names, "NotExist")]
458-
else:
459-
return [self.linearparameters.get(x, "NotExist") for x in names]
460-
461448
def getInputs(self, names=None): # 6
462449
"""
463450
This method returns dict. The key is input names and value is corresponding input value.

0 commit comments

Comments
 (0)