Skip to content

Who-validation#80

Open
eatyourpeas wants to merge 34 commits intolivefrom
who-validation
Open

Who-validation#80
eatyourpeas wants to merge 34 commits intolivefrom
who-validation

Conversation

@eatyourpeas
Copy link
Member

@eatyourpeas eatyourpeas commented Feb 21, 2026

Overview

This is a fairly large feature because it:

  1. replaces the WHO part of UK-WHO with the WHO 2006 published tables that have daily LMS values
  2. fixes the WHO 2006 and 2007 references, when used as pure WHO, to use the WHO SD correction for extreme values (outside +/- 3 SD)
  3. adds tests for WHO 2006 and WHO 2007 using values generated from a customised version of the WHO published anthro and anthroplus packages
  4. Adds tests for WHO chart functions which use the published WHO chart centile values as the standard.
  5. Replaces the WHO part of UK-WHO with the daily values
  6. adds convenience scripts to use the package in editable mode in docker
  7. bumps the minor version

…ameter which defaults to False, but applies linear interpolation across the board if true. Adds comparisons between who daily and uk_who calculated values
…, monthly for >5y as json, csv folder for the who csv files. adds a new function to parse the csv files either into individual json files or 3 combination files as before. deprecates old who json files
…ting chart function bmi against gold standard charts
- Updated comments for clarity regarding age thresholds.
- Simplified the logic for selecting WHO reference data for children aged 2.0 and below.
- Removed redundant checks and print statements related to reference selection.
- Ensured that the correct reference is selected based on the age and default_youngest_reference flag.
- Improved error handling for missing reference data by raising a LookupError with a clear message.
- fixed BMI failing tests with exception of +3.09
…male), bmi (male/female), length (male/female)
… test data out to separate file. now has over 5y tests for centile line calculation for length (boys/girls), weight (girls)
…easurement for plotting pass, when testing against the published WHO line coordinates. Oddly though they only pass if we DON'T use the convoluted calculations that apply a correction above +3 and below -3 SDS for BMI.
…tiles. Note that this involves disabling the WHO calculations >-3 and <-3 SD. We have no tests for measurement->SDS for this so these will need to be added
…d from WHO published anthro and anthroplus packages forked to RCPCH and amended to increase precision to 3dp. Chart functions passing (though >5y excluded from under 5s published curves). We are now including in <5s actually upto 1856 days, and taking WHO 2007 from 61 months (where the data starts from)
@pacharanero
Copy link
Member

🤯 whoa man! Nice work.
Huge milestone feature, do you want us to review it with you before merging? I understand the change to the stats, but I'm rusty on the code base.
I guess the output doesn't change, only we don't have to do interpolation?

@eatyourpeas
Copy link
Member Author

LOL thank you @pacharanero - It would be great if we could go through it together as a sense check ?

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.

2 participants