def configure(self, config): ModulePoint.configure(self,config) range_name = config[self.parent.range_attribute] range = Range.map[range_name] ion = mpx.lib.factory('mpx.ion.configured_point') ion.configure({'name':range.unit,'parent':self,'unit':range.unit, 'min':range.min,'max':range.max})
def configure(self, config): ModulePoint.configure(self, config) range_name = config[self.parent.range_attribute] range = Range.map[range_name] ion = mpx.lib.factory('mpx.ion.configured_point') ion.configure({ 'name': range.unit, 'parent': self, 'unit': range.unit, 'min': range.min, 'max': range.max })
def configure(self, config): ModulePoint.configure(self, config)