Skip to content
Snippets Groups Projects
Commit a82a2c1f authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-2017: fix

parent 49ca84cc
Branches
No related tags found
No related merge requests found
...@@ -1498,7 +1498,7 @@ def compute_individual_and_weighted_scores(scheduling_units: [models.SchedulingU ...@@ -1498,7 +1498,7 @@ def compute_individual_and_weighted_scores(scheduling_units: [models.SchedulingU
for i, su in enumerate(scheduling_units): for i, su in enumerate(scheduling_units):
try: try:
scored_su = compute_scheduling_unit_scores(su, lower_bound, upper_bound, gridder) scored_su = compute_scheduling_unit_scores(su, lower_bound, upper_bound, gridder)
if scored_su is not None and scored_su.start_time is not None and scored_su.start_time >= lower_bound and scored_su.start_time < upper_bound: if scored_su is not None and scored_su.start_time is not None:
scored_scheduling_units.append(scored_su) scored_scheduling_units.append(scored_su)
logger.info("compute_individual_and_weighted_scores: checked unit [%d/%d] %.1f%% id=%d", logger.info("compute_individual_and_weighted_scores: checked unit [%d/%d] %.1f%% id=%d",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment