Library / Code module
Section enrollment allocator with prerequisites and waitlists
section_enrollment_allocator
Seat students in course sections by priority group and registration time, honouring capacity, prerequisites, one section per course and time-block clashes, with ordered waitlists.
ATTRIBUTION.md4.9 KBLICENSE1.0 KBONET-ATTRIBUTION.md7.9 KBPROCEDURE.md2.6 KBREADME.md4.6 KBTOOLS.md2.0 KBcomponent.json13.5 KBexamples/known_good.json3.3 KBexamples/known_wrong.json482 byteskit_schema.py11.4 KBsection_enrollment_allocator.py8.9 KBtest_package.py6.8 KB
Full files in your harness.
What it takes and gives
- Runs with
- Python 3.10 or later
- Command
python3 section_enrollment_allocator.py < input.json- Function
section_enrollment_allocator.run- Required input
- sections, students, requests
Cases it covers
- Known wrong example: A request names section BIO100-A, which is not in the section list. Refused as unknown section.
- input invalid: refused with exit code 2
- input not json: refused with exit code 2
- duplicate id: refused with exit code 2
- unknown section: refused with exit code 2
- unknown student: refused with exit code 2
- invalid date time: refused with exit code 2
Limits and scope
- Limits
- Prerequisites are completed course ids only; grades, co-requisites and instructor permission are not modelled. A time block is a label; overlap between different labels is not detected. Waitlists are not promoted automatically when seats free up: rerun with updated capacity. A registration time without an offset is read as UTC.
- Work activities
- Perform student enrollment or registration activities; Maintain student records.
Details
- Kind
- Code module
- Licence
- MIT
- Declared effects
- runs commands
- Source
- github.com/alisonjieli-png/loop-engine/tools/creative_originals/occupation_task_kits/items/section_enrollment_allocator
- Size
- 12 files, 67.6 KB
- Identity
library.supply.creative_originals.6fccd047de766c8191c34e3b.79427df908c77e62- Version
79427df908c77e62cdc28991df5c2b272fba246b52d7f287bd91ba88ed29e285
The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.
Where it is shown
- Records, schedules and budgetsDeterministic skills
Related components
Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.