flitsr.read_ranking¶
- flitsr.read_ranking.read_any_ranking(ranking_file: str | TextIO, method_level=False) Rankings¶
Guess the ranking from the contents of the ranking_file and read it in. Closes the file after reading (even if an open file handle is given).
- Parameters:
ranking_file – str: The ranking input file to read in.
method_level – (Default value = False) Whether the ranking file is method level.
- Returns:
A
Rankingsobject containing the single read-in ranking.