From 798d36aa12e22928e884668ae5c80a25d48393ea Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Mon, 19 Dec 2016 19:37:23 +0530 Subject: Change weight variable name to mark_fraction --- yaksh/java_code_evaluator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'yaksh/java_code_evaluator.py') diff --git a/yaksh/java_code_evaluator.py b/yaksh/java_code_evaluator.py index f94321e..5d3fd28 100644 --- a/yaksh/java_code_evaluator.py +++ b/yaksh/java_code_evaluator.py @@ -124,7 +124,7 @@ class JavaCodeEvaluator(BaseEvaluator): """ success = False - test_case_weight = 0.0 + mark_fraction = 0.0 proc, stdnt_out, stdnt_stderr = self.compiled_user_answer stdnt_stderr = self._remove_null_substitute_char(stdnt_stderr) @@ -143,7 +143,7 @@ class JavaCodeEvaluator(BaseEvaluator): proc, stdout, stderr = ret if proc.returncode == 0: success, err = True, "Correct answer" - test_case_weight = float(seelf.weight) if self.partial_grading else 0.0 + mark_fraction = float(seelf.weight) if self.partial_grading else 0.0 else: err = stdout + "\n" + stderr else: @@ -169,4 +169,4 @@ class JavaCodeEvaluator(BaseEvaluator): except: err = err + "\n" + stdnt_stderr - return success, err, test_case_weight + return success, err, mark_fraction -- cgit