Releases: The-Strategy-Unit/nhp_model
v4.4.1
What's Changed
- add citation.cff file by @yiwen-h in #529
- removes janitor by @tomjemmett in #534
- Bump the uv group across 1 directory with 9 updates by @dependabot[bot] in #535
- Bump jsonschema from 4.25.1 to 4.26.0 by @dependabot[bot] in #536
- Bump jupyter-client from 8.6.3 to 8.8.0 by @dependabot[bot] in #537
- Bump matplotlib from 3.10.6 to 3.10.8 by @dependabot[bot] in #538
- Bump tqdm from 4.67.1 to 4.67.3 by @dependabot[bot] in #539
- Dependabot updates by @tomjemmett in #540
New Contributors
- @dependabot[bot] made their first contribution in #535
Full Changelog: v4.3.1...v4.4.1
v4.4.0
v4.3.1
v4.3.0
What's Changed
- adds fallback version number by @tomjemmett in #503
- Add comprehensive Copilot instructions for repository onboarding by @Copilot in #504
- remove step from action by @tomjemmett in #506
- forces maximum python version to be 3.11 to 3.13 by @tomjemmett in #508
- adds schema/sample params to src by @tomjemmett in #505
- removes databricks code and national notebook by @tomjemmett in #492
- add age_group to IP full results converted to other activity types by @yiwen-h in #511
- ✏️ Add uv run to generate params step by @StatsRhian in #512
- Improve test performance by @tomjemmett in #513
- 🚀 Add execution time logging to model run and update finish method by @tomjemmett in #515
- pin pandas_flavor to <0.8 by @yiwen-h in #516
- fixes typing issues by @tomjemmett in #519
Full Changelog: v4.2.1...v4.3.0
v4.2.1
What's Changed
- switches to using spawn multiprocessing by @tomjemmett in #499
- deprecate generate synthetic datasets notebook by @tomjemmett in #498
- enable dependabot by @tomjemmett in #500
- Update docstrings to Google-style format and fix outdated documentation by @Copilot in #501
- adds mkdocs support by @tomjemmett in #502
New Contributors
- @Copilot made their first contribution in #501
Full Changelog: v4.2.0...v4.2.1
v4.2.0
What's Changed
- tidy up project by @tomjemmett in #483
- clean up pyproject toml by @tomjemmett in #489
- Update inequalities functionality by @yiwen-h in #491
- fix bug in inequalities for PBM notebook by @yiwen-h in #495
- adds codecov config by @tomjemmett in #496
- alter way inequalities factors are loaded by @tomjemmett in #497
Full Changelog: v4.1.0...v4.2.0
v4.1.0
What's Changed
- Remove covid from JSON schema by @matt-dray in #469
- ensures the .whl will be pip installable. by @tomjemmett in #470
- removes data modification steps by @tomjemmett in #461
- removes docker container timeout by @tomjemmett in #462
- force factor to be treated as float by @tomjemmett in #471
- Remove covid adjustment by @yiwen-h in #472
- sets ICB column to NATIONAL for national runs by @tomjemmett in #473
- adds delivery episode in spell aggregation by @tomjemmett in #478
- allows run_all to use different data sources by @tomjemmett in #482
- change fyear in generate_synthetic_datasets notebook by @yiwen-h in #487
Full Changelog: v4.0.1...v4.1.0
v4.0.1
What's Changed
improve progress reporting #437
Implements progress reporting by updating metadata on the file uploaded to the queue container. This allows up to report back progress to the inputs app
improve exception handling in containers #451
There were cases where the python code would crash in the docker container, but the python process would never terminate, leaving the container running unnecessarily.
We now handle these exceptions more gracefully, which allows the containers to terminate immediately on errors.
Tidying up
- 💄 Add links and smarter planning graphic to README by @StatsRhian in #439
- fix lint issues by @tomjemmett in #441
- fix typing issues by @tomjemmett in #443
- Updated the image URL by @AshAninze in #444
- fix issues caused by #443 by @tomjemmett in #445
- add integration tests by @tomjemmett in #448
- fix issue with config tests by @tomjemmett in #450
- fix docker config by @tomjemmett in #453
- removes unused package depedencies from pyproject.toml by @tomjemmett in #455
New Contributors
- @AshAninze made their first contribution in #444
Full Changelog: v4.0.0...v4.0.1
v4.0.0
What's Changed
Bugs fixed
Fixes aggregation issue #413
There has existed a bug for a while that affected OP/A&E activity: if any of the columns which we use in any of the results contained a null value, then that row of activity was lost. We now ensure that any nulls are kept in the grouping, and replaced with the value "unknown"
allow 0 to be set as minimum value in params schema #422
The schema was only allowing values > 0 for the mitigators to be set. This should have been >= 0.
New Features
uses new tretspef/tretpef_grouped columns #411
Previously, we had a bit of a bodge with the tretspef (treatment specialty function) column. When we extracted the data, we grouped these specialties to only keep the specialties used in RTT reporting. We later added in the ungrouped tretspef column, but in order not to break other code we added this as tretspef_raw.
We now handle this a bit more cleanly by having the actual values in tretspef, introducing a new column called tretspef_grouped. This has resulted in the aggregations changing names.
2022 based ONS population projections
ONS have released the 2022-based subnational population projections. This release updates the model to use these instead of the 2018 based projections previously used.
- updates variant lookup for 2022 based pop projections by @tomjemmett in #423
- Add the population variants to the json schema by @matt-dray in #425
- Update schema with correct pop projections for v4.0.0, add params validation to tests by @yiwen-h in #427
- adds an argument to select the projection_year for demographics by @tomjemmett in #431
- Separate demographics births by @yiwen-h in #433
- uses the extracted tables for the demographic/birth data for national run by @tomjemmett in #436
Refactor code base #406
all of the python code now sits under the src folder, so the code base can be built as a package.
- fixes build issues when pushing to ghcr by @tomjemmett in #385
- fix: repository structure. [WIP] by @ai-mindset in #382
- update vscode launch by @tomjemmett in #391
- update uv lock by @tomjemmett in #392
- 386 fix tests data by @ai-mindset in #397
- removes duplicate of exit container function by @tomjemmett in #398
- update national model to use nhp-model wheel by @tomjemmett in #399
- removes need for imports from main module by @tomjemmett in #402
- create .whl of the app by @tomjemmett in #403
- adds temporary work around for "missing" /opt/docker_run.py by @tomjemmett in #405
General tidying up
- fixes issues highlighted by ruff check src by @tomjemmett in #407
- removes hsa_gams.py (now in nhp_data) by @tomjemmett in #408
- refactor data loading by @tomjemmett in #409
- improve readme with developer info and link to one page explainer by @yiwen-h in #420
- fixes issue with building containers by @tomjemmett in #416
- automate changing of in schema by @tomjemmett in #429
- adds more lint rules by @tomjemmett in #434
New Contributors
- @ai-mindset made their first contribution in #382
- @matt-dray made their first contribution in #425
Full Changelog: v3.6.0...v4.0.0
v3.6.1
backports #413 to fix #412, which caused some results to be missing rows of data due to the presense of NA's.
Full Changelog: v3.6.0...v3.6.1