def params_to_dict(params, dct):
    """
    Updates the 'dct' dictionary with the 'params' dictionary, filtering out
    all those whose param value is None.
    """
    for param, val in params.items():
        if val is None:
            continue
        dct[param] = val
    return dct