def get_model_from_name()

in src/edge/run.py [0:0]


def get_model_from_name(name, config_dict):
    """Returns the model dict from the config dict"""
    model_obj = next((x for x in config_dict['models'] if x['name'] == name), None)
    if model_obj is not None:
        return model_obj
    else:
        logging.warning('Model object not found in config')
        return None