def get_interpob(model):
    """Retrieves the interpolation dictionary from model.

    Different nufft objects use different interpolation objects. This function
    only extracts the minimum amount necessary for sparse matrix
    precomputation.

    Args:
        model (TorchKbNufft object): A TorchKbNufft object with attributes for
            forming a KbNufft interpolation dictionary.

    Returns:
        dict: A dictionary with interpolation parameters.
    """
    interpob = dict()
    interpob["table"] = []
    for i in range(len(model.table)):
        interpob["table"].append(getattr(model, "table_tensor_" + str(i)))
    interpob["grid_size"] = model.grid_size_tensor
    interpob["numpoints"] = model.numpoints_tensor
    interpob["table_oversamp"] = model.table_oversamp_tensor

    return interpob