From 409b80994a6ebb46f6ca29bf2f30400265796b35 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Wed, 1 Jan 2020 15:29:30 +0100 Subject: [PATCH] Feat: no half_point rounding in converting level to score --- recopytex/df_marks_manip.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recopytex/df_marks_manip.py b/recopytex/df_marks_manip.py index 8d1e570..a39b3d0 100644 --- a/recopytex/df_marks_manip.py +++ b/recopytex/df_marks_manip.py @@ -44,7 +44,8 @@ def score_to_mark(x): if x[COLUMNS["is_leveled"]]: if x[COLUMNS["score"]] not in [0, 1, 2, 3]: raise ValueError(f"The evaluation is out of range: {x[COLUMNS['score']]} at {x}") - return round_half_point(x[COLUMNS["score"]] * x[COLUMNS["score_rate"]] / 3) + #return round_half_point(x[COLUMNS["score"]] * x[COLUMNS["score_rate"]] / 3) + return round(x[COLUMNS["score"]] * x[COLUMNS["score_rate"]] / 3, 2) if x[COLUMNS["score"]] > x[COLUMNS["score_rate"]]: raise ValueError(