-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure clean transition between mode 1 and mode 2 (#1168)
* Ensure clean transition between mode 1 and mode 2 * Ensure that you only stop querying the queue when reaching the lowest_priority_considered in mode 2 * Fixed syntax * Add test to check that policy has no impact on mode 1 * Add small clarifying statement * Address first round of comments on test for this R * In fnc get_events_due_today (used by mode 0 and 1), query entire queue without any checks on priority of HSIs * If queue querying is stopped when we get to future events of lowest_priority_considered, we would have never got to events below lowest_priority_considered due today * Flush HSIs with priority lower than lowest_priority_considered when cleaning the queue after resources have been exhausted * Update tests/test_healthsystem.py * Ensure all policies are compared with Naive and small correction to text * Style fixes * Add clarifying comment as to why HSIs with priority > lowest_priority_considered may be present in the queue in mode 2 to avoid confusion in the future --------- Co-authored-by: Tim Hallett <[email protected]>
- Loading branch information
1 parent
7c152da
commit dcdf014
Showing
4 changed files
with
80 additions
and
51 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
resources/healthsystem/ResourceFile_HealthSystem_parameters.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions
4
resources/healthsystem/priority_policies/ResourceFile_PriorityRanking_ALLPOLICIES.xlsx
Git LFS file not shown
This file contains 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
This file contains 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