def applyFracturePredictor(dataSet, fracturePredictor, **kwargs):
    """
       This function takes a dataset dictionary, and returns a dictionary,
       which contains filenames as keys and a list of the predicted locations.

    Inputs
    ------
    fracturePredictor: function
        fracturePredictor is a function which takes an individual signal
        and returns a list of estimated fracture times

    Returns
    -------
    a dictionary which has the same keys as the dataset dictionary,
    and as values has a list of times (maybe an array)

    Note
    ----
    works only on the first channel!


    """

    # create an empty dictionary
    fractureTimes = {}

    for key in dataSet.keys():
        # create an empty dictionary
        fractureTimes[key] = fracturePredictor(dataSet[key][:,0],**kwargs)

    return (fractureTimes)