def config_reaction_type_weight(reaction_type_weight): if type(reaction_type_weight) is dict: DAO_utils.mongo_set_conf('reaction_type_weight', reaction_type_weight, is_overwrite=True) else: raise TypeError('reaction_type_weight should be a dict!')
def config_a_u_map(a_u_map): if type(a_u_map) is dict: DAO_utils.mongo_set_conf('a_u_tagmap', a_u_map) else: raise TypeError('a_u_map should be a dict!')