Skip to content
13 changes: 0 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,6 @@ build/

# Specifically allow time_to_event CSV files
# These are confirmed to be safe to share
!reference/survival_time_to_event_curves/ttd_cadTx_initialisation.csv
!reference/survival_time_to_event_curves/ttd_cadTx.csv
!reference/survival_time_to_event_curves/ttd_hhd_initialisation.csv
!reference/survival_time_to_event_curves/ttd_hhd.csv
!reference/survival_time_to_event_curves/ttd_ichd.csv
!reference/survival_time_to_event_curves/ttd_ichd_initialisation.csv
!reference/survival_time_to_event_curves/ttd_initialisation.csv
!reference/survival_time_to_event_curves/ttd_liveTx_initialisation.csv
!reference/survival_time_to_event_curves/ttd_liveTx.csv
!reference/survival_time_to_event_curves/ttd_pd_initialisation.csv
!reference/survival_time_to_event_curves/ttd_pd.csv
!reference/survival_time_to_event_curves/ttgf_cadTx_initialisation.csv
!reference/survival_time_to_event_curves/ttgf_cadTx.csv
!reference/survival_time_to_event_curves/ttgf_liveTx_initialisation.csv
Expand All @@ -122,5 +111,3 @@ build/
!reference/survival_time_to_event_curves/ttma_ichd.csv
!reference/survival_time_to_event_curves/ttma_pd_initialisation.csv
!reference/survival_time_to_event_curves/ttma_pd.csv
!reference/survival_time_to_event_curves/tw_cadTx_England.csv
!reference/survival_time_to_event_curves/tw_liveTx_England.csv
20 changes: 12 additions & 8 deletions renal_capacity_model/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
load_time_to_event_curves,
ttd_con_care_values,
tw_before_dialysis_values,
ttd_krt_values,
tw_cadTx_values,
tw_liveTx_values,
tw_cadTx_initialisation_values,
tw_liveTx_initialisation_values,
)
from renal_capacity_model.utils import get_logger

Expand Down Expand Up @@ -59,28 +64,27 @@ def __init__(
# routing distributions
self.con_care_dist = config_dict["con_care_dist"]
self.suitable_for_transplant_dist = config_dict["suitable_for_transplant_dist"]
self.receives_transplant_dist = config_dict["receives_transplant_dist"]
self.transplant_type_dist = config_dict["transplant_type_dist"]
self.modality_allocation_distributions = config_dict[
"modality_allocation_distributions"
]
self.death_post_transplant = config_dict["death_post_transplant"]
self.death_post_dialysis_modality = config_dict["death_post_dialysis_modality"]
self.death_post_dialysis_modality_incident = config_dict[
"death_post_dialysis_modality_incident"
]
self.pre_emptive_transplant_live_donor_dist = config_dict[
"pre_emptive_transplant_live_donor_dist"
]

self.pre_emptive_transplant_cadaver_donor_dist = config_dict[
"pre_emptive_transplant_cadaver_donor_dist"
]
self.death_post_transplant_glm = config_dict["death_post_transplant_glm"]
self.multipliers = config_dict["multipliers"]
# time to event distribution parameters (these are the same regardless of geography)
self.ttd_con_care = ttd_con_care_values
self.ttd_krt = ttd_krt_values
self.tw_cadTx = tw_cadTx_values
self.tw_liveTx = tw_liveTx_values
self.tw_cadTx_initialisation = tw_cadTx_initialisation_values
self.tw_liveTx_initialisation = tw_liveTx_initialisation_values
self.tw_before_dialysis = tw_before_dialysis_values

self.multipliers = config_dict["multipliers"]
self.time_to_event_curves = load_time_to_event_curves(
path_to_time_to_event_curves
)
Expand Down
Loading