Commit ff41fa1
Update Level 1b consumable availability to reflect 1b-2 merge (#1743)
* update availability of consumables at level 1b to reflect the weighted average of availability at levels 1b and 2
* allow for different weights when calculating average
* revert original resource file
* add new resource files with different ways of handling level 1b availability
* merge in xpert update from master
* apply weighted average of level 1b and 2 facilities to level 1b probability across alternative consumable scenarios
- set up so that `consumable_availability_estimation.py` produces the final RF using functions from `generate_consumable_availability_scenarios_for_impact_analysis.py`
* remove test ResourceFiles applying different level 1b-2 weights.
* update logical check for changes in consumables availabiltity in routine `update_consumables_availability_to_represent_merging_of_levels_1b_and_2`
* Add note
* linting
* introduce switch to allow use of the original consumables dataset
* correct filename
* check both consumables data files
* update old scripts to point to original consumbales file to preserve consistency.
* linting
---------
Co-authored-by: Tim Hallett <39991060+tbhallett@users.noreply.github.com>1 parent eafccb9 commit ff41fa1
9 files changed
Lines changed: 1266 additions & 1198 deletions
File tree
- resources/healthsystem
- consumables
- src
- scripts
- contraception
- data_file_processing/healthsystem/consumables
- consumable_resource_analyses_with_lmis
- generating_consumable_scenarios
- malaria
- tlo/methods
- tests
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
Lines changed: 516 additions & 242 deletions
Large diffs are not rendered by default.
Lines changed: 711 additions & 943 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
203 | 210 | | |
204 | 211 | | |
205 | 212 | | |
| |||
655 | 662 | | |
656 | 663 | | |
657 | 664 | | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
658 | 674 | | |
659 | | - | |
| 675 | + | |
660 | 676 | | |
661 | 677 | | |
| 678 | + | |
662 | 679 | | |
663 | 680 | | |
664 | 681 | | |
| |||
1330 | 1347 | | |
1331 | 1348 | | |
1332 | 1349 | | |
1333 | | - | |
| 1350 | + | |
1334 | 1351 | | |
1335 | 1352 | | |
1336 | 1353 | | |
| |||
1339 | 1356 | | |
1340 | 1357 | | |
1341 | 1358 | | |
1342 | | - | |
1343 | | - | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
1344 | 1363 | | |
1345 | 1364 | | |
1346 | 1365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| 534 | + | |
534 | 535 | | |
535 | | - | |
536 | | - | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
537 | 541 | | |
538 | 542 | | |
539 | 543 | | |
| |||
0 commit comments