Added mandatory evaluator steps

This commit is contained in:
2019-12-22 19:51:17 +01:00
parent a683d4cd42
commit 5c90b07e1a
13 changed files with 210 additions and 63 deletions
+2 -1
View File
@@ -254,7 +254,8 @@ class Sheerka(Concept):
# group the evaluators by priority and sort them
# The first one to be applied will be the one with the highest priority
grouped_evaluators = {}
for evaluator in [e() for e in self.evaluators if e.enabled]:
instantiated_evaluators = [e_class() for e_class in self.evaluators]
for evaluator in [e for e in instantiated_evaluators if e.enabled and process_step in e.steps]:
if logger:
evaluator.log = logger
grouped_evaluators.setdefault(evaluator.priority, []).append(evaluator)