Skip to content

Commit

Permalink
Merge branch 'master' into mnjowe/convert_excel_files_to_csv_Tim_H_mo…
Browse files Browse the repository at this point in the history
…dules
  • Loading branch information
mnjowe authored Jan 15, 2025
2 parents 2adb1c1 + f0d351b commit 51b9148
Show file tree
Hide file tree
Showing 40 changed files with 297 additions and 123 deletions.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
'sphinx.ext.ifconfig',
'sphinx.ext.napoleon',
'sphinx.ext.todo',
'rawfiles'
'rawfiles',
'sphinxcontrib.youtube',
]

if os.getenv('SPELLCHECK'):
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Contents
resources/index
parameters
learning
videos
publications
contributors
contributing
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
sphinx>=1.3
sphinx-rtd-theme
sphinxcontrib-youtube
pybtex
pyyaml
requests
Expand Down
85 changes: 85 additions & 0 deletions docs/videos.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
===========
HEPU Videos
===========

The *Health Economics and Policy Unit* (HEPU) is a unit within the Department of Health Systems
under the School of Global and Public Health at the Kamuzu University of Health Sciences.
It was established in 2018 with support from the Thanzi La Onse Program with the aim of promoting demand,
generation and use of health economics evidence in health policy and decision making.

Background: Thanzi La Mawa Project
==================================

A video exploring the Thanzi La Mawa project, led by Prof Tim Hallett at Imperial.
In response to the need for more evidence to support resource allocation decision making processes in Malawi,
researchers and modellers have partnered with Kamuzu University of Health Sciences, led by Prof Joseph Mfutso-Bengo,
to develop a 'whole system and all-disease model' for the Malawi health system.
Discover how their findings could potentially revolutionize healthcare practices and policies,
ultimately benefiting millions of Malawians.

.. youtube:: dazYfnhaNOw
:align: center

Training and Capacity Building
==============================

A modelling short course was held in Blantyre, Malawi, from 23-26 September 2024,
hosted by the Health Economics and Policy Unit of Kamuzu University of Health Sciences
in collaboration with Imperial and University College London.
This course marks a significant milestone for health education in Malawi,
empowering local professionals with advanced modelling skills
to strengthen the capacity of Malawi's health systems in responding to future challenges.

.. youtube:: T5WvzDFpuF4
:align: center

Policy Think Tanks
==================

**HEPU 9th Extraordinary Think Tank Conference, Launch of Thanzi La Mawa Program.**

.. youtube:: 6HCJVFV-gGI
:align: center

**HEPU 12th Extraordinary Think Tank Conference, Christian Health Association of Malawi Service Level Agreement Value for Money Evaluation.**

.. youtube:: Ce_iLowNwIQ
:align: center

**HEPU 13th Extraordinary Think Tank Conference, Progress of the Direct Facility Financing and Financial Risk Management.**

.. youtube:: tTp6FprPRGs
:align: center

Research Seminars
=================

**86th Research Seminar, Institutionalization of Health Technology Assessment in Malawi: A Progress Update with Dr. Lucky Ngwira.**

.. youtube:: hcRNwU-SA98
:align: center

3rd KUHeS Research Dissemination Conference
-------------------------------------------

**Performance of Pooled Donor Funding to Support the Malawi Health Service Strategic Plans in the Context of Suspended Direct Budgetary Support.**

.. youtube:: RFTmfkvUbNg
:align: center

**Advancing Universal Health Coverage: Assessing the Efficiency of Contracting Not-for-Profit Faith-Based Healthcare Providers in Malawi.**

.. youtube:: RMUItOZTtWg
:align: center

**Improved Community Governance and Public Financial Management Outcomes: Direct Facility Financing Evaluation.**

.. youtube:: YqbRT3CNVQY
:align: center

**Demonstrating the Use of VEDMAP Framework as a Research Tool for Value-Mapping and Value-Implementation Fidelity-Assessment:
A Case of Feasibility Study of Health Technology Assessment in Malawi.**

.. youtube:: u4CZcBqRRoA
:align: center

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ dev = [
# Profiling
"ansi2html",
"psutil",
"pyinstrument>=4.7",
"pyinstrument>=4.3",
# Building requirements files
"pip-tools",
]
Expand Down Expand Up @@ -127,3 +127,4 @@ where = ["src"]

[tool.setuptools_scm]
version_file = "src/tlo/_version.py"
git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", 'v[0-9]*']
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ psutil==5.9.5
# via tlo (pyproject.toml)
pycparser==2.21
# via cffi
pyinstrument==4.7.3
pyinstrument==4.5.3
# via tlo (pyproject.toml)
pyjwt[crypto]==2.8.0
# via
Expand Down
3 changes: 0 additions & 3 deletions resources/ResourceFile_Alri.xlsx

This file was deleted.

3 changes: 3 additions & 0 deletions resources/ResourceFile_Alri/Calculations.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions resources/ResourceFile_Alri/GBD_Malawi_estimates.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions resources/ResourceFile_Alri/Lazzerini CFR.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions resources/ResourceFile_Alri/McAllister_2019.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions resources/ResourceFile_Alri/Parameter_values.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions resources/ResourceFile_Alri/Pathogen_specific.csv
Git LFS file not shown
3 changes: 0 additions & 3 deletions resources/ResourceFile_Depression.xlsx

This file was deleted.

3 changes: 3 additions & 0 deletions resources/ResourceFile_Depression/parameter_values.csv
Git LFS file not shown
3 changes: 0 additions & 3 deletions resources/ResourceFile_Diarrhoea.xlsx

This file was deleted.

3 changes: 3 additions & 0 deletions resources/ResourceFile_Diarrhoea/Parameter_values.csv
Git LFS file not shown
3 changes: 0 additions & 3 deletions resources/ResourceFile_RTI.xlsx

This file was deleted.

3 changes: 3 additions & 0 deletions resources/ResourceFile_RTI/parameter_values.csv
Git LFS file not shown
3 changes: 0 additions & 3 deletions resources/epilepsy/ResourceFile_Epilepsy.xlsx

This file was deleted.

Git LFS file not shown
3 changes: 3 additions & 0 deletions resources/epilepsy/ResourceFile_Epilepsy/additional info.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions resources/epilepsy/ResourceFile_Epilepsy/parameter_values.csv
Git LFS file not shown
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
load_pickled_dataframes,
summarize,
)
from tlo.util import read_csv_files

resourcefilepath = Path("./resources")
datestamp = datetime.date.today().strftime("__%Y_%m_%d")
Expand Down Expand Up @@ -124,14 +125,14 @@ def get_under5_person_years(py_):
draw = 0

# import GBD data for Malawi's ALRI burden estimates
GBD_data = pd.read_excel(
Path(resourcefilepath) / "ResourceFile_Alri.xlsx",
sheet_name="GBD_Malawi_estimates",
GBD_data = read_csv_files(
Path(resourcefilepath) / "ResourceFile_Alri",
files="GBD_Malawi_estimates",
)
# import McAllister estimates for Malawi's ALRI incidence
McAllister_data = pd.read_excel(
Path(resourcefilepath) / "ResourceFile_Alri.xlsx",
sheet_name="McAllister_2019",
McAllister_data = read_csv_files(
Path(resourcefilepath) / "ResourceFile_Alri",
files="McAllister_2019",
)

plt.style.use("ggplot")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
load_pickled_dataframes,
summarize,
)
from tlo.util import read_csv_files

resourcefilepath = Path("./resources")
datestamp = datetime.date.today().strftime("__%Y_%m_%d")
Expand Down Expand Up @@ -155,14 +156,14 @@ def get_person_years(draw, run):
end_date = 2031

# import GBD data for Malawi's ALRI burden estimates
GBD_data = pd.read_excel(
Path(resourcefilepath) / "ResourceFile_Alri.xlsx",
sheet_name="GBD_Malawi_estimates",
GBD_data = read_csv_files(
Path(resourcefilepath) / "ResourceFile_Alri",
files="GBD_Malawi_estimates",
)
# import McAllister estimates for Malawi's ALRI incidence
McAllister_data = pd.read_excel(
Path(resourcefilepath) / "ResourceFile_Alri.xlsx",
sheet_name="McAllister_2019",
McAllister_data = read_csv_files(
Path(resourcefilepath) / "ResourceFile_Alri",
files="McAllister_2019",
)

plt.style.use("ggplot")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
simplified_births,
symptommanager,
)
from tlo.util import read_csv_files

# %%
outputpath = Path("./outputs")
Expand Down Expand Up @@ -141,14 +142,14 @@
end_date = 2026

# import GBD data for Malawi's ALRI burden estimates
GBD_data = pd.read_excel(
Path(resourcefilepath) / "ResourceFile_Alri.xlsx",
sheet_name="GBD_Malawi_estimates",
GBD_data = read_csv_files(
Path(resourcefilepath) / "ResourceFile_Alri",
files="GBD_Malawi_estimates",
)
# import McAllister estimates for Malawi's ALRI incidence
McAllister_data = pd.read_excel(
Path(resourcefilepath) / "ResourceFile_Alri.xlsx",
sheet_name="McAllister_2019",
McAllister_data = read_csv_files(
Path(resourcefilepath) / "ResourceFile_Alri",
files="McAllister_2019",
)

plt.style.use("ggplot")
Expand Down
5 changes: 2 additions & 3 deletions src/scripts/epi/analysis_epi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import datetime
import os
import time
from pathlib import Path

Expand All @@ -18,6 +17,7 @@
simplified_births,
symptommanager,
)
from tlo.util import read_csv_files

start_time = time.time()

Expand Down Expand Up @@ -86,8 +86,7 @@

# ------------------------------------- DATA ------------------------------------- #
# import vaccine coverage data
workbook = pd.read_excel(os.path.join(resourcefilepath,
'ResourceFile_EPI_WHO_estimates.xlsx'), sheet_name=None)
workbook = read_csv_files(Path(resourcefilepath)/'ResourceFile_EPI_WHO_estimates', files=None)

coverage_data = workbook["WHO_estimates"]

Expand Down
11 changes: 5 additions & 6 deletions src/scripts/hiv/projections_jan2023/calibration_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@
"""

import os
import random

import pandas as pd
from pathlib import Path

from tlo import Date, logging
from tlo.methods import (
Expand All @@ -51,6 +49,7 @@
tb,
)
from tlo.scenario import BaseScenario
from tlo.util import read_csv_files

number_of_draws = 1
runs_per_draw = 5
Expand All @@ -68,9 +67,9 @@ def __init__(self):
self.number_of_draws = number_of_draws
self.runs_per_draw = runs_per_draw

self.sampled_parameters = pd.read_excel(
os.path.join(self.resources, "../../../../resources/ResourceFile_HIV/parameters.csv"),
sheet_name="LHC_samples",
self.sampled_parameters = read_csv_files(
Path("./resources")/"ResourceFile_HIV",
files="LHC_samples",
)

def log_configuration(self):
Expand Down
Loading

0 comments on commit 51b9148

Please sign in to comment.