def create_mapping(dict_times):
    """
    If times are not integers, transform them into integers.
    :param dict_times: Dict where keys are times.
    :return: A mapping which is a dictionary maps from current names of time stamps to integers (by their index)
    """
    keys = list(dict_times.keys())
    mapping = {}
    for i in range(len(keys)):
        mapping.update({keys[i]: i})
    return mapping