Skip to content

Commit 633c157

Browse files
Morgan Lucy (MLCSU)Morgan Lucy (MLCSU)
authored andcommitted
small edits removing commented code
1 parent cd7624f commit 633c157

File tree

4 files changed

+0
-53
lines changed

4 files changed

+0
-53
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_values.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,6 @@
376376
4: [1.31, 762],
377377
5: [1.23, 619],
378378
6: [1.02, 385],
379-
# 1: [1.02, 1187],
380-
# 2: [1.10, 1313],
381-
# 3: [1.01, 1537],
382-
# 4: [0.98, 2001],
383-
# 5: [0.82, 3613],
384-
# 6: [0.47, 24639],
385379
}
386380

387381
tw_liveTx_values = {
@@ -391,12 +385,6 @@
391385
4: [1.09, 420],
392386
5: [1.22, 391],
393387
6: [1.01, 342],
394-
# 1: [0.71, 739],
395-
# 2: [0.7, 1373],
396-
# 3: [0.62, 2814],
397-
# 4: [0.54, 7969],
398-
# 5: [0.54, 62092],
399-
# 6: [0.54, 62092],
400388
}
401389

402390
tw_cadTx_initialisation_values = {
@@ -406,12 +394,6 @@
406394
4: [1.26, 1023],
407395
5: [1.28, 839],
408396
6: [1.28, 409],
409-
# 1: [1.12, 1336, 0.63],
410-
# 2: [1.13, 1163, 0.5],
411-
# 3: [1.22, 1194, 0.44],
412-
# 4: [1.26, 1023, 0.35],
413-
# 5: [1.28, 839, 0.18],
414-
# 6: [1.28, 409, 0.05],
415397
}
416398

417399
tw_liveTx_initialisation_values = {
@@ -421,12 +403,6 @@
421403
4: [1.01, 665],
422404
5: [1.27, 765],
423405
6: [1.27, 765],
424-
# 1: [0.96, 751, 0.38],
425-
# 2: [1.04, 1005, 0.21],
426-
# 3: [0.96, 903, 0.14],
427-
# 4: [1.01, 665, 0.1],
428-
# 5: [1.26, 765, 0.03],
429-
# 6: [0, 0, 0.00],
430406
}
431407

432408
# Time waiting before dialysis

renal_capacity_model/model.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -780,9 +780,6 @@ def start_transplant(self, patient: Patient) -> Generator:
780780
if patient.patient_flag == "incident":
781781
random_number = truncate_2dp(self.rng.uniform(0, 1))
782782
sampled_time = min(
783-
# self.config.time_to_event_curves[f"ttd_inc_received_Tx"].loc[
784-
# random_number, patient.patient_type
785-
# ]
786783
self.config.ttd_krt["incidence"]["received_Tx"][
787784
patient.referral_type
788785
][patient.age_group][1]
@@ -803,9 +800,6 @@ def start_transplant(self, patient: Patient) -> Generator:
803800
else: # prevalent patient
804801
random_number = truncate_2dp(self.rng.uniform(0, 1))
805802
sampled_time = min(
806-
# self.config.time_to_event_curves[f"ttd_prev_received_Tx"].loc[
807-
# random_number, patient.patient_type
808-
# ]
809803
self.config.ttd_krt["initialisation"]["received_Tx"][
810804
patient.referral_type
811805
][patient.age_group][1]

renal_capacity_model/utils.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@
1212
"ttma_ichd_initialisation",
1313
"ttma_pd",
1414
"ttma_pd_initialisation",
15-
# "tw_cadTx_England",
16-
# "tw_liveTx_England",
17-
# "tw_cadTx_England_initialisation",
18-
# "tw_liveTx_England_initialisation",
19-
# "ttd_inc_listed",
20-
# "ttd_inc_not_listed",
21-
# "ttd_inc_received_Tx",
22-
# "ttd_prev_listed",
23-
# "ttd_prev_not_listed",
24-
# "ttd_prev_received_Tx",
2515
]
2616

2717

0 commit comments

Comments
 (0)