Repository navigation
Conversation
The importer now reads the lavage columns it used to skip: lavage done (2016-17 'Lavage (y/n)', 2020-21 'Gastic lavage'), stomach fullness (full / traces / empty) and free-text contents, into new capture columns. /physiology gains a stomach-contents section: fullness by season and species, foraging success by moon phase (Debaere et al. 2024), by umbilical scar and by time after sunset with chi-square tests, body condition of fed vs empty pups, and the kinds of food named in the samples. A live finding summarises it. Adds chiSquare / chiSquareP to stats, synthetic lavage columns to the fixture, and bumps IMPORTER_VERSION to 6. Closes #40 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fetch-external gains a cyclones job: IBTrACS South Pacific best tracks, kept within 750 km of Moorea since 2013 (external/cyclones.csv, new cyclone_points table). analytics/events.ts finds storms passing within 500 km and heavy-rain days (wettest 1% of ERA5 days), and compares catches after them with other sets in the same season and month (observed / expected, bootstrap interval). Weather page: "Storms and downpours" section (catch rate after events, heavy-rain days by month, cyclone table) and storm markers on the monthly rainfall chart via a new LineChart `markers` prop. Sources added to the footer, About, README and AGENTS.md. IMPORTER_VERSION 7. Closes #24 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both branches added blocks at the same spots in stats.ts (normalP vs the chi-square helpers), findings.ts (catch-model vs lavage finding) and AGENTS.md; kept both. Restores the normalP assertions in stats.test.ts now that both helpers are on one branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AGENTS.md: both sides added a repo-map line and a section before "Adding a new season"; kept both. 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 #24.
Data
scripts/fetch-external.mjsgets acyclonesjob. It downloads the IBTrACS v04r01 South Pacific CSV (~36 MB, NOAA, public) and keeps track points within 750 km of Mo'orea since 2013-08-01, written toexternal/cyclones.csv(82 rows). The weekly refresh workflow picks it up automatically.cyclone_pointstable (migration0003);IMPORTER_VERSION→ 7.Analysis (
analytics/events.ts)Weather page
markersprop onLineChart(same style as the histogram markers).Checks
pnpm lint,pnpm check,pnpm test(70, incl. a test that Niko is found from the committed snapshot),pnpm build,pnpm test:e2e(29), real-data import and the Weather page checked in the browser.🤖 Generated with Claude Code