feat: generalize student timetable parsing - #1
Draft
raulkolaric wants to merge 4 commits into
Draft
Conversation
- grid.py: parse and validate student-specific timetable slots and semester bounds\n- llm.py: reconcile extracted subjects against the parsed timetable\n- dates.py: require explicit resolution for unmatched subjects and times\n- output.py: remove the hard-coded campus location from ICS output\n- main.py: add interactive subject/time selection and user-facing failures\n- docs and tests: document the dynamic workflow and cover generalized behavior
- grid.py: combine adjacent slots for the same subject into one class block\n- test_generalization.py: cover consecutive timetable rows from one class session
- dates.py: use the only subject timetable slot when an explicit date falls on another weekday\n- test_generalization.py: cover automatic resolution for a single available slot
Extract calendar-scoping context from the teaching-plan Markdown content and preserve missing values as blank instead of prompting the student.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces repository-specific timetable and subject assumptions with a student-provided timetable parsing flow.
Validation
[pdf] collected 1 labeled document(s)
[pdf] JSON payload size: 56 chars
[dates] computing events from 1 fact(s), 2 grid slot(s), semester start 2027-02-01
[dates] computing events from 1 fact(s), 1 grid slot(s), semester start 2027-02-01
[dates] fact: Projeto 1 | code=BIO42 | matched 1 slot(s)
[dates] class #2 on weekdays [0] → 2027-02-08 (estimated)
[dates] slot: BIO42 13:30:00-15:10:00 (weekday=0)
[dates] produced 1 event(s)
[output] writing 1 event(s) to ICS: /var/folders/_t/cznf5jbd7452_yjrjhwcy01c0000gn/T/tmpl242r_1w/events.ics
[output] ICS written: 344 bytes
[output] writing 1 event(s) to ICS: /var/folders/_t/cznf5jbd7452_yjrjhwcy01c0000gn/T/tmp6l4ewhl4/events.ics
[output] ICS written: 378 bytes
[dates] computing events from 1 fact(s), 1 grid slot(s), semester start 2027-02-01
All 24 tests pass.