def dict_to_progress_file(file_dict: dict, log_path: str) -> bool:
    """
    Turns a dictionary into a delphin progress file.

    :param file_dict: Dictionary holding the information for the progress file
    :param log_path: Path to were the progress file should be written
    :return: True
    """

    file_obj = open(log_path + '/progress.txt', 'w')

    spaces = 15
    file_obj.write('   Simtime [s] \t   Realtime [s]\t Percentage [%]\n')

    for line_index in range(0, len(file_dict['simulation_time'])):
        sim_string = ' ' * (spaces - len(str(file_dict['simulation_time'][line_index]))) + \
                     str(file_dict['simulation_time'][line_index])

        real_string = ' ' * (spaces - len(str(file_dict['real_time'][line_index]))) + \
                      str(file_dict['real_time'][line_index])

        if int(file_dict['percentage'][line_index]) == 100:
            percentage_string = ' ' * (spaces - len('1e+02')) + '1e+02'

        elif file_dict['percentage'][line_index] == int(file_dict['percentage'][line_index]):
            percentage_string = ' ' * (spaces - len(str(int(file_dict['percentage'][line_index])))) + \
                                str(int(file_dict['percentage'][line_index]))

        else:
            percentage_string = ' ' * (spaces - len(str(file_dict['percentage'][line_index]))) + \
                                str(file_dict['percentage'][line_index])

        file_obj.write(sim_string + '\t' + real_string + '\t' + percentage_string + '\n')

    file_obj.close()

    return True