Skip to content

v0.3.0 - 2026-11-18

Choose a tag to compare

@amyheather amyheather released this 18 Nov 10:21
· 9 commits to main since this release
583f2ec

Refactored input modelling (and moved here from ambdes-private), added shared constants and new tests, and fixed arrival-rate overestimation by including zero-patient combinations in averages

Added

  • Input modelling:
    • Add input_shifts.py (moved and refactored code from ambdes-private).
    • Add input_data.py (to reduce repetitive cleaning of the same data in notebooks! Also introduce new defensive programming which checks mapping when replace labels, conversion froms seconds to minutes once, and bug fixes noted below).
  • Constants: Add constants.py (for any used in 2+ modules and/or multiple notebooks).
  • Tests: Added new tests.

Changed

  • init.py: Removed __all__, instead now specify the module to import from.
  • Input modelling: Separated into more distinct modules.

Fixed

  • Input data: Big bug! Was excluding 0 counts when did means. This meant the group mean was the average arrivals on dates when this category / outcome / hour combination had at least one patient, whereas now it is the average arrivals across all possible combinations, including combinations with zero patients. Original calculations were overestimating arrival numbers.
  • Arrival config: build_arrival_config saves as NA instead of 0 for outcome probabilities.