fix_broken_second_line

tsml_eval.utils.results_repair.fix_broken_second_line(file_path, save_path=None)[source]

Fix a results while where the written second line has line breaks.

This function will remove line breaks from any lines between the first line and the first seen valid ‘third_line’ for any results file format.

Parameters:
file_pathstr

Path to the results file to be fixed, including the file itself.

save_pathstr, default=None

Path to save the fixed results file to, including the file new files name. If None, the new file will replace the original file.