-
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.
Merge branch 'master' into wgraham/pyinstrument-profiling-ci
- Loading branch information
Showing
70 changed files
with
4,717 additions
and
1,569 deletions.
There are no files selected for viewing
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
Git LFS file not shown
This file was deleted.
Oops, something went wrong.
Git LFS file not shown
4 changes: 2 additions & 2 deletions
4
resources/ResourceFile_Improved_Healthsystem_And_Healthcare_Seeking.xlsx
Git LFS file not shown
Git LFS file not shown
4 changes: 2 additions & 2 deletions
4
resources/healthsystem/ResourceFile_HealthSystem_parameters.csv
Git LFS file not shown
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
resources/healthsystem/consumables/ResourceFile_Consumables_availability_and_usage.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions
4
resources/healthsystem/consumables/ResourceFile_Consumables_availability_small.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions
4
resources/healthsystem/consumables/ResourceFile_consumables_matched.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions
4
resources/healthsystem/human_resources/actual/ResourceFile_Daily_Capabilities.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...m/human_resources/definitions/ResourceFile_Appts_That_Require_HCW_Who_Are_Not_Present.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions
4
resources/healthsystem/human_resources/funded/ResourceFile_Daily_Capabilities.csv
Git LFS file not shown
4 changes: 2 additions & 2 deletions
4
resources/healthsystem/human_resources/funded_plus/ResourceFile_Daily_Capabilities.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
resources/healthsystem/priority_policies/ResourceFile_PriorityRanking_ALLPOLICIES.xlsx
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
resources/healthsystem/real_appt_usage_data/unadjusted_real_monthly_usage_of_appt_type.csv
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import argparse | ||
import glob | ||
import os.path | ||
import zipfile | ||
|
@@ -12,7 +13,6 @@ | |
analysis_compare_appt_usage_real_and_simulation, | ||
plot_appt_use_by_hsi, | ||
) | ||
from tlo.analysis.utils import get_scenario_outputs | ||
|
||
|
||
def apply(results_folder: Path, output_folder: Path, resourcefilepath: Path = None): | ||
|
@@ -60,11 +60,12 @@ def apply(results_folder: Path, output_folder: Path, resourcefilepath: Path = No | |
|
||
|
||
if __name__ == "__main__": | ||
outputspath = Path('./outputs/[email protected]') | ||
|
||
# Find results folder (most recent run generated using that scenario_filename) | ||
scenario_filename = 'long_run_all_diseases.py' | ||
results_folder = get_scenario_outputs(scenario_filename, outputspath)[-1] | ||
|
||
# Run all the calibrations | ||
apply(results_folder=results_folder, output_folder=results_folder, resourcefilepath=Path('./resources')) | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument("results_folder", type=Path) | ||
args = parser.parse_args() | ||
|
||
apply( | ||
results_folder=args.results_folder, | ||
output_folder=args.results_folder, | ||
resourcefilepath=Path('./resources') | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
This uses the results of the Scenario defined in: src/scripts/long_run/long_run.py but it can edited to look at other | ||
results (change 'scenario_filename'). | ||
""" | ||
|
||
import argparse | ||
from pathlib import Path | ||
|
||
import numpy as np | ||
|
@@ -15,7 +15,6 @@ | |
extract_results, | ||
format_gbd, | ||
get_color_cause_of_death_or_daly_label, | ||
get_scenario_outputs, | ||
load_pickled_dataframes, | ||
make_age_grp_lookup, | ||
make_age_grp_types, | ||
|
@@ -412,11 +411,12 @@ def shift_row_to_top(df, index_to_shift): | |
|
||
|
||
if __name__ == "__main__": | ||
outputspath = Path('./outputs/[email protected]') | ||
rfp = Path('./resources') | ||
|
||
# Find results folder (most recent run generated using that scenario_filename) | ||
scenario_filename = 'long_run_all_diseases.py' | ||
results_folder = get_scenario_outputs(scenario_filename, outputspath)[-1] | ||
|
||
apply(results_folder=results_folder, output_folder=results_folder, resourcefilepath=rfp) | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument("results_folder", type=Path) | ||
args = parser.parse_args() | ||
|
||
apply( | ||
results_folder=args.results_folder, | ||
output_folder=args.results_folder, | ||
resourcefilepath=Path('./resources') | ||
) |
Oops, something went wrong.