Skip to content

Commit

Permalink
#467 Implemented new kis task scoring for perpetual tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterl committed Jul 17, 2024
1 parent 2e09cfa commit 935ffe0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class NonInteractiveEvaluation(store: TransientEntityStore, evaluation: DbEvalua
DbScoreOption.KIS -> throw IllegalStateException("KIS task scorer is not applicable to non-interactive evaluations")
DbScoreOption.AVS -> AvsTaskScorer(this, store)
DbScoreOption.LEGACY_AVS -> LegacyAvsTaskScorer(this, store)
DbScoreOption.NOOP -> NoOpTaskScorer(this)
else -> throw IllegalStateException("The task score option $scoreOption is currently not supported.")
}
) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ class KisTaskScorer(
store: TransientEntityStore?
) : AbstractTaskScorer(scoreable, store) {

init {
require(scoreable.duration != null){"Cannot create a KisTaskScorer for perpetual task '${scoreable.taskId}'"}
}

constructor(run: TaskRun, parameters: Map<String, String>, store: TransientEntityStore?) : this(
run,
parameters.getOrDefault("maxPointsPerTask", "$defaultmaxPointsPerTask").toDoubleOrNull() ?: defaultmaxPointsPerTask,
Expand Down

0 comments on commit 935ffe0

Please sign in to comment.