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>
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>
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 #40.
Importer
The shark logs already had lavage columns, but the importer matched and then ignored them. Three new capture columns:
lavage(0/1)Lavage (y/n)Gastic lavageEversion/Lavagestomach(full / traces / empty)Lavage (full/empty)Stomach contentstomach_contents(free text)Lavage (contents)Stomach sample typeState of Stomach"no sample", "n/a", "no food" and "traces of food" are never treated as contents. A fullness cell that isn't a fullness word (e.g. "worm found") is kept as contents. New migration
0002,IMPORTER_VERSION→ 6, so deployed caches rebuild./physiology, "Diet" section
lavage(the title flips if most pups turn out to have eaten)Every statement in the notes is chosen by the test result in the load function; no numbers are hard-coded.
Also
chiSquare/chiSquarePinstats.ts(regularised incomplete gamma), tested against textbook critical values.diet(), and e2e/axe now render the section.Checks
pnpm lint,pnpm check,pnpm test(69), real-data import test,pnpm build,pnpm test:e2e(29). Real-data page checked in the browser.Independent of #108; the two branches touch different files except
findings.tsandAGENTS.md, where both only add new blocks.🤖 Generated with Claude Code