@@ -770,7 +770,8 @@ def getSolutions(self, varList=None, resultfile=None): # 12
770770
771771 raise ModelicaSystemError ("Unhandled input for getSolutions()" )
772772
773- def strip_space (self , name ):
773+ @staticmethod
774+ def _strip_space (name ):
774775 if isinstance (name , str ):
775776 return name .replace (" " , "" )
776777 elif isinstance (name , list ):
@@ -787,7 +788,7 @@ def setMethodHelper(self, args1, args2, args3, args4=None):
787788 args4 - dict() which stores the new override variables list,
788789 """
789790 def apply_single (args1 ):
790- args1 = self .strip_space (args1 )
791+ args1 = self ._strip_space (args1 )
791792 value = args1 .split ("=" )
792793 if value [0 ] in args2 :
793794 if args3 == "parameter" and self .isParameterChangeable (value [0 ], value [1 ]):
@@ -811,7 +812,7 @@ def apply_single(args1):
811812
812813 elif isinstance (args1 , list ):
813814 result = []
814- args1 = self .strip_space (args1 )
815+ args1 = self ._strip_space (args1 )
815816 for var in args1 :
816817 result .append (apply_single (var ))
817818
@@ -888,7 +889,7 @@ def setInputs(self, name): # 15
888889 >>> setInputs(["Name1=value1","Name2=value2"])
889890 """
890891 if isinstance (name , str ):
891- name = self .strip_space (name )
892+ name = self ._strip_space (name )
892893 value = name .split ("=" )
893894 if value [0 ] in self .inputlist :
894895 tmpvalue = eval (value [1 ])
@@ -903,7 +904,7 @@ def setInputs(self, name): # 15
903904 errstr = value [0 ] + " is not an input"
904905 self ._raise_error (errstr = errstr )
905906 elif isinstance (name , list ):
906- name = self .strip_space (name )
907+ name = self ._strip_space (name )
907908 for var in name :
908909 value = var .split ("=" )
909910 if value [0 ] in self .inputlist :
0 commit comments