@@ -784,7 +784,8 @@ def getSolutions(self, varList=None, resultfile=None): # 12
784784
785785 raise ModelicaSystemError ("Unhandled input for getSolutions()" )
786786
787- def strip_space (self , name ):
787+ @staticmethod
788+ def _strip_space (name ):
788789 if isinstance (name , str ):
789790 return name .replace (" " , "" )
790791 elif isinstance (name , list ):
@@ -801,7 +802,7 @@ def setMethodHelper(self, args1, args2, args3, args4=None):
801802 args4 - dict() which stores the new override variables list,
802803 """
803804 def apply_single (args1 ):
804- args1 = self .strip_space (args1 )
805+ args1 = self ._strip_space (args1 )
805806 value = args1 .split ("=" )
806807 if value [0 ] in args2 :
807808 if args3 == "parameter" and self .isParameterChangeable (value [0 ], value [1 ]):
@@ -825,7 +826,7 @@ def apply_single(args1):
825826
826827 elif isinstance (args1 , list ):
827828 result = []
828- args1 = self .strip_space (args1 )
829+ args1 = self ._strip_space (args1 )
829830 for var in args1 :
830831 result .append (apply_single (var ))
831832
@@ -902,7 +903,7 @@ def setInputs(self, name): # 15
902903 >>> setInputs(["Name1=value1","Name2=value2"])
903904 """
904905 if isinstance (name , str ):
905- name = self .strip_space (name )
906+ name = self ._strip_space (name )
906907 value = name .split ("=" )
907908 if value [0 ] in self .inputlist :
908909 tmpvalue = eval (value [1 ])
@@ -917,7 +918,7 @@ def setInputs(self, name): # 15
917918 errstr = value [0 ] + " is not an input"
918919 self ._raise_error (errstr = errstr )
919920 elif isinstance (name , list ):
920- name = self .strip_space (name )
921+ name = self ._strip_space (name )
921922 for var in name :
922923 value = var .split ("=" )
923924 if value [0 ] in self .inputlist :
0 commit comments