Repository navigation
Environment: French Polynesia school holidays as a busy-day proxy (#25) - #114
Merged
Merged
Conversation
School holidays since 2013-14 now sit beside weekends, public holidays and the festive window on the Human pressure page. - fetch-external.mjs gains a `school` job writing external/school-holidays.csv: 2013-14 to 2016-17 transcribed from the Polynesian government's calendar orders (arrêtés 0270/CM 2013, 0399, 0401, 0403/CM 2014, archived from education.pf), then the Ministry of Education's open data from 2017-18 (Licence Ouverte 2.0). Pupils only; a known typo is corrected in SCHOOL_ERRATA and overlapping breaks fail the job. - school_holidays table, loaded into the dataset; IMPORTER_VERSION 8. - holidays.ts: schoolDays() and a 'School holidays' day type (public holiday > festive > school holidays > weekend). - /pressure compares school-holiday weekdays with term-time weekdays and lists sets per break; About, footer and README credit the calendars. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Closes #25. This adds the last missing piece of that issue: French Polynesia school holidays, from 2013-14 to the present, as a busy-day proxy alongside weekends, public holidays and the Christmas–New Year period.
Where the dates come from
scripts/fetch-external.mjs. The orders come from the Wayback Machine's archive of the old education.pf site (education.pf/des.pf.old/fichiers_des/Calendriers/…).fr-en-calendrier-scolaire, zone Polynésie, Licence Ouverte 2.0). It is credited on About, in the footer and in the README.Notes:
SCHOOL_ERRATA: every other year, that break starts on the Saturday about two weeks before classes resume in November. I couldn't confirm it against the 2023 order itself, so it is worth a check.Changes
scripts/fetch-external.mjs: newschooljob writingexternal/school-holidays.csv(first and last day off, local dates). It joins the weekly refresh, so future calendars arrive on their own (the national data already runs to 2028-29).New
school_holidaystable (migration 0004), loaded asdataset().schoolHolidays.IMPORTER_VERSIONbumped to 8.holidays.ts:schoolDays(), which expands each break into its individual dates, and a new School holidays day type. When a date falls in more than one category, the order is: public holiday > festive period > school holidays > weekend./pressure→ Busy days:Every number on the page is computed live, and the wording changes with the p-value. On the current data, neither test shows a difference beyond chance.
AGENTS.md (new "School holidays (Environment: human-activity proxies (weekends, public & school holidays) #25)" section), README, About, footer and the refresh workflow comment.
Checks
pnpm lint,pnpm check,pnpm test(77 passed)/pressurein the dev server: five bars and the new copyholidays.test.ts: expanding breaks into dates, and the order of day types;import.test.ts: every school year from 2013-14 to 2025-26 is present, and the 2023 correction is applied.🤖 Generated with Claude Code