def setEis(self, value): oldEis = self.__eis self.__eis = value if self.__dpt == None: self.__dpt = dptInterpreter.getDPT(dpt = None, eis=value, length = self.__length) # interpret if necceary if oldEis != value and self.data != []: self._isInterpreted = False self.interpret();
def setlength(self, value): oldLenght = self.__length self.__length = value if self.__dpt == None and self.__eis == None: self.__dpt = dptInterpreter.getDPT(dpt = None, eis=self.__eis, length = value) if oldLenght != value and self.data != []: self._isInterpreted = False self.interpret();