def update_if(d, p, **kwds):
    if p is None:
        p = lambda k,v: v is not None 
    d = dict(d)                 # copy
    for k,v in kwds.items():
        if not k in d:
            d[k] = v
            continue
        if p(k, v):
            d[k] = v

    return d
Return a copy of d updated with kwds.
dataset/ETHPy150Open hwaf/hwaf/py-hwaftools/orch/util.py/update_if