@@ -108,12 +108,11 @@ def max_scores(self):
108108 logger .error ("Unimplemented method max_scores." )
109109 raise NotImplementedError ("Please subclass this class." )
110110
111- def compute_score (self , unused_submission_id ):
112- """Computes a score of a single submission. We don't know here
113- how to do it, but our subclasses will.
111+ def compute_score (self , unused_submission_result ):
112+ """Computes a score of a single submission.
114113
115- unused_submission_id (int ): the id of the submission to
116- evaluate.
114+ unused_submission_result (SubmissionResult ): the submission
115+ result of which we want the score
117116
118117 returns (float, str, float, str, [str]): respectively: the
119118 score, the HTML string with additional information (e.g.
@@ -235,11 +234,7 @@ class ScoreTypeGroup(ScoreTypeAlone):
235234{% end %}"""
236235
237236 def max_scores (self ):
238- """Compute the maximum score of a submission.
239-
240- returns (float, float): maximum score overall and public.
241-
242- """
237+ """See ScoreType.max_score."""
243238 score = 0.0
244239 public_score = 0.0
245240 headers = list ()
@@ -260,12 +255,7 @@ def max_scores(self):
260255 return score , public_score , headers
261256
262257 def compute_score (self , submission_result ):
263- """Compute the score of a submission.
264-
265- submission_id (int): the submission to evaluate.
266- returns (float): the score
267-
268- """
258+ """See ScoreType.compute_score."""
269259 # Actually, this means it didn't even compile!
270260 if not submission_result .evaluated ():
271261 return 0.0 , "[]" , 0.0 , "[]" , \
0 commit comments