def set_model_par(model_par, settings):
    """[Sets model parameters based on settings dictionary]
    
    Arguments:
        model_par {[dictionary]} -- Dictionary with base parameters to modify
        
        settings {[dictionary]} -- [keys are names of model parameters, values are parameter values]
    
    Returns:
        [dictionary] -- [modified parameter dictionary]
    """
    model_par_local = model_par.copy()
    for key, val in settings.items():
        model_par_local[key] = val
    return model_par_local