def set_attribute_value(self, attribute_name, attribute_value): glib.configcheck(self, self.logger) self.logger.info("set_attribute_value {} -> {} ".format( attribute_name, attribute_value)) # update config glib.configset(self._config, attribute_name, attribute_value) # set wfl config return self._bmi.set_attribute_value(attribute_name, attribute_value)
def set_attribute_value(self, attribute_name, attribute_value): glib.configcheck(self, self.logger) # always use "general" as config header; as file has no config header this is hard-coded if ':' not in attribute_name: attribute_name = 'general:{}'.format(attribute_name) else: attribute_name = 'general:{}'.format(attribute_name.split(':')[1]) self.logger.debug("set_attribute_value: {} -> {}".format( attribute_name, attribute_value)) return glib.configset(self._config, attribute_name, str(attribute_value))
def set_attribute_value(self, attribute_name, attribute_value): """sets attribute value in in underlying model; attribute_name should use the following convention model_name.section_name:attribute_name Arguments: attribute_name {str} -- Name of BMI attribute attribute_value {float} -- value to be est Returns: [str] -- [no clue] """ glib.configcheck(self, self.logger) self.logger.debug("set_attribute_value: " + attribute_value) return glib.configset(self._config, attribute_name, attribute_value)
def set_attribute_value(self, attribute_name, attribute_value): glib.configcheck(self, self.logger) self.logger.debug("set_attribute_value: {} -> {}".format( attribute_name, attribute_value)) return glib.configset(self._config, attribute_name, str(attribute_value))