Skip to content

Environment: public holidays and festive period as busy-day proxies - #87

Merged
Luen merged 1 commit into
mainfrom
human-activity-proxies
Nov 2, 2026
Merged

Luen merged 1 commit into
mainfrom
human-activity-proxies

Conversation

@Luen

@Luen Luen commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Refs #25. This covers the public-holiday part. School holidays are still open (see below).

What

  • src/lib/server/holidays.ts computes French Polynesia's public holidays for any year:
    • Fixed: 1 Jan, 5 Mar (Arrival of the Gospel), 1 May, 8 May, 14 Jul, 15 Aug, 1 Nov, 11 Nov, 25 Dec.
    • Easter-based: Good Friday, Easter Monday, Ascension and Whit Monday.
    • Internal Autonomy Day (29 Jun) up to 2024, then Matari'i i ni'a (20 Nov) from 2025. The Council of Ministers decided this swap in April 2024, and the first 20 November holiday was in 2025.
  • It also defines a generic "festive period" window from 20 Dec to 5 Jan.
  • Human pressure → Busy days: compares the mean per-set catch rate (95% CI) by type of day (weekday, weekend, public holiday, festive) and by day of the week. A Welch test compares busy days with ordinary weekdays. The wording is computed from the result and doesn't claim cause.
  • On the real data: busy days average 0.88 sharks per net-hour, ordinary weekdays 1.02, Welch p = 0.153, which is within chance. Holiday sets are few (All Saints' 9, Armistice 8, New Year 2…).

Not included: school holidays

The Polynesian school calendar is set by decree each year and can't be derived from rules. Adding it needs the yearly calendars for 2013–2026, e.g. as a small committed CSV in external/. I've left #25 open for that.

Checks

  • pnpm lint and pnpm check pass.
  • pnpm test passes (42, including the new holidays.test.ts: Easter dates, the 2025 swap, day labels).
  • pnpm build and pnpm test:e2e (29) pass.

🤖 Generated with Claude Code

holidays.ts computes French Polynesia's public holidays (incl. Good Friday,
Easter Monday, Ascension, Whit Monday; Matari'i i ni'a replacing Autonomy Day
from 2025) and a Christmas-New Year window. The Human pressure page compares
catch rates on weekdays, weekends, holidays and the festive period, and by day
of the week, with 95% CIs and a Welch test.

Refs #25

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Luen
Luen merged commit 74557eb into main Nov 2, 2026
5 checks passed
@Luen
Luen deleted the human-activity-proxies branch November 2, 2026 23:17
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.

1 participant