Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix timeslot parsing #82

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix timeslot parsing #82

wants to merge 1 commit into from

Conversation

psvenk
Copy link
Member

@psvenk psvenk commented Nov 28, 2024

Fixes #79. Properly account for timings that begin in the morning and end in the evening by special-casing these rather than treating evening times as morning times. Add assertions and give more detailed error messages.

This causes 15.089 ("W EVE (11-6 PM)") to be parsed correctly (as 11:00 AM to 6:00 PM) but also results in early morning ROTC classes (such as NS.100) throwing errors since we don't support times before 8:00 AM (these classes were previously misidentified as evening classes).

It would also make sense to overhaul the timeslot system so that early morning classes can be supported, but I'll leave that to another pull request.

Properly account for timings that begin in the morning and end in the
evening by special-casing these rather than treating evening times as
morning times. Add assertions and give more detailed error messages.

This causes 15.089 ("W EVE (11-6 PM)") to be parsed correctly but also
results in early morning ROTC classes (such as NS.100) throwing errors
since we don't support times before 8:00 AM (these classes were
previously misidentified as evening classes).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fireroad.py can't parse schedule for 15.089?
1 participant