Skip to content

Commit ab4394f

Browse files
authored
Merge pull request #149 from The-Strategy-Unit/logic-shift
Logic shift
2 parents bf9c0af + 633c157 commit ab4394f

File tree

7 files changed

+949
-801
lines changed

7 files changed

+949
-801
lines changed

.gitignore

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,6 @@ build/
101101

102102
# Specifically allow time_to_event CSV files
103103
# These are confirmed to be safe to share
104-
!reference/survival_time_to_event_curves/ttd_cadTx_initialisation.csv
105-
!reference/survival_time_to_event_curves/ttd_cadTx.csv
106-
!reference/survival_time_to_event_curves/ttd_hhd_initialisation.csv
107-
!reference/survival_time_to_event_curves/ttd_hhd.csv
108-
!reference/survival_time_to_event_curves/ttd_ichd.csv
109-
!reference/survival_time_to_event_curves/ttd_ichd_initialisation.csv
110-
!reference/survival_time_to_event_curves/ttd_initialisation.csv
111-
!reference/survival_time_to_event_curves/ttd_liveTx_initialisation.csv
112-
!reference/survival_time_to_event_curves/ttd_liveTx.csv
113-
!reference/survival_time_to_event_curves/ttd_pd_initialisation.csv
114-
!reference/survival_time_to_event_curves/ttd_pd.csv
115104
!reference/survival_time_to_event_curves/ttgf_cadTx_initialisation.csv
116105
!reference/survival_time_to_event_curves/ttgf_cadTx.csv
117106
!reference/survival_time_to_event_curves/ttgf_liveTx_initialisation.csv
@@ -122,5 +111,3 @@ build/
122111
!reference/survival_time_to_event_curves/ttma_ichd.csv
123112
!reference/survival_time_to_event_curves/ttma_pd_initialisation.csv
124113
!reference/survival_time_to_event_curves/ttma_pd.csv
125-
!reference/survival_time_to_event_curves/tw_cadTx_England.csv
126-
!reference/survival_time_to_event_curves/tw_liveTx_England.csv

renal_capacity_model/config.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
load_time_to_event_curves,
1313
ttd_con_care_values,
1414
tw_before_dialysis_values,
15+
ttd_krt_values,
16+
tw_cadTx_values,
17+
tw_liveTx_values,
18+
tw_cadTx_initialisation_values,
19+
tw_liveTx_initialisation_values,
1520
)
1621
from renal_capacity_model.utils import get_logger
1722

@@ -59,28 +64,27 @@ def __init__(
5964
# routing distributions
6065
self.con_care_dist = config_dict["con_care_dist"]
6166
self.suitable_for_transplant_dist = config_dict["suitable_for_transplant_dist"]
67+
self.receives_transplant_dist = config_dict["receives_transplant_dist"]
6268
self.transplant_type_dist = config_dict["transplant_type_dist"]
6369
self.modality_allocation_distributions = config_dict[
6470
"modality_allocation_distributions"
6571
]
66-
self.death_post_transplant = config_dict["death_post_transplant"]
67-
self.death_post_dialysis_modality = config_dict["death_post_dialysis_modality"]
68-
self.death_post_dialysis_modality_incident = config_dict[
69-
"death_post_dialysis_modality_incident"
70-
]
7172
self.pre_emptive_transplant_live_donor_dist = config_dict[
7273
"pre_emptive_transplant_live_donor_dist"
7374
]
7475

7576
self.pre_emptive_transplant_cadaver_donor_dist = config_dict[
7677
"pre_emptive_transplant_cadaver_donor_dist"
7778
]
78-
self.death_post_transplant_glm = config_dict["death_post_transplant_glm"]
79-
self.multipliers = config_dict["multipliers"]
8079
# time to event distribution parameters (these are the same regardless of geography)
8180
self.ttd_con_care = ttd_con_care_values
81+
self.ttd_krt = ttd_krt_values
82+
self.tw_cadTx = tw_cadTx_values
83+
self.tw_liveTx = tw_liveTx_values
84+
self.tw_cadTx_initialisation = tw_cadTx_initialisation_values
85+
self.tw_liveTx_initialisation = tw_liveTx_initialisation_values
8286
self.tw_before_dialysis = tw_before_dialysis_values
83-
87+
self.multipliers = config_dict["multipliers"]
8488
self.time_to_event_curves = load_time_to_event_curves(
8589
path_to_time_to_event_curves
8690
)

0 commit comments

Comments
 (0)