

def update_param_vals(model, newvals):
    'update the values of model parameters with the values from a dict. \n    the keys in the dict must match the parameter names\n    '
    update = []
    noupdate = []
    for i in model.parameters:
        if (i.name in newvals):
            i.value = newvals[i.name]
            update.append(i.name)
        else:
            noupdate.append(i.name)
    return (update, noupdate)

dataset/ETHPy150Open pysb/pysb/pysb/util.py update_param_vals/original