more data
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Phase 1: general courses (shared across every batch of a session).
|
||||
|
||||
Simple strategy — small offering count, Tue/Thu preferred first. After
|
||||
Simple strategy — small offering count, Mon/Wed preferred first. After
|
||||
placing everything, self-repair: any batch left with two general-course
|
||||
sessions in the same slot has the losing session unmarked and re-placed
|
||||
(scanning every day) until this phase's own sessions are clash-free.
|
||||
@@ -10,7 +10,7 @@ sessions in the same slot has the losing session unmarked and re-placed
|
||||
from . import grid
|
||||
|
||||
|
||||
def run(board, data, preferred_days=("Tuesday", "Thursday"), max_repair_attempts=20):
|
||||
def run(board, data, preferred_days=("Monday", "Wednesday"), max_repair_attempts=20):
|
||||
"""Places every general-course offering's weekly lectures. Returns this phase's sessions."""
|
||||
general = [o for o in data["offerings"] if o["course"]["is_general"]]
|
||||
preferred_order = list(preferred_days) + [d for d in grid.DAYS if d not in preferred_days]
|
||||
|
||||
Reference in New Issue
Block a user