Commit 955a94cf authored by Yannick DAYER's avatar Yannick DAYER

Consistency in checking if bonafide / attack score

parent 9d0b02cf
Pipeline #51404 failed with stage
in 8 minutes and 47 seconds
...@@ -226,7 +226,7 @@ def split_csv_pad(filename): ...@@ -226,7 +226,7 @@ def split_csv_pad(filename):
logger.debug(f"Loading CSV score file: '{filename}'") logger.debug(f"Loading CSV score file: '{filename}'")
split_scores = defaultdict(list) split_scores = defaultdict(list)
for row in _iterate_csv_score_file(filename): for row in _iterate_csv_score_file(filename):
if row["is_bonafide"] == "True": if row["is_bonafide"].lower() == "true":
split_scores["bonafide"].append(row["score"]) split_scores["bonafide"].append(row["score"])
else: else:
split_scores["attack"].append(row["score"]) split_scores["attack"].append(row["score"])
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment