Skip to content
Snippets Groups Projects
Commit 6b66726e authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

[score][load] Always sort scores when sort=True

Fixes a bug introduced in !258 where scores were not being sorted
when the file was a csv file.
parent 3c963bff
No related branches found
No related tags found
1 merge request!265[score][load] Always sort scores when sort=True
Pipeline #53992 failed
...@@ -387,8 +387,8 @@ def split(filename, ncolumns=None, sort=False): ...@@ -387,8 +387,8 @@ def split(filename, ncolumns=None, sort=False):
the ``real_id`` are identical (see :py:func:`four_column`) the ``real_id`` are identical (see :py:func:`four_column`)
""" """
if iscsv(filename): if iscsv(filename):
return split_csv_scores(filename) neg, pos = split_csv_scores(filename)
else:
ncolumns = _estimate_score_file_format(filename, ncolumns) ncolumns = _estimate_score_file_format(filename, ncolumns)
if ncolumns == 4: if ncolumns == 4:
neg, pos = split_four_column(filename) neg, pos = split_four_column(filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment