Skip to content

Commit ba73cd7

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 d090601 commit ba73cd7

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

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

0 commit comments

Comments
 (0)