Skip to content

Commit c8f70ca

Browse files
committed
Fix small bug introducing when fixing style
1 parent dae3cd9 commit c8f70ca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_healthsystem.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,9 +2021,7 @@ def apply(self, person_id, squeeze_factor):
20212021

20222022
for i in range(0, int(tot_population)):
20232023
sim.population.props.at[i, 'district_of_residence'] = keys_district[0]
2024-
2025-
# Get facility ID
2026-
facID = int((re.search(r'\d+', next(iter(hsi1.expected_time_requests)))).group())
2024+
20272025

20282026
# Schedule an identical appointment for all individuals
20292027
for i in range(0, tot_population):
@@ -2046,6 +2044,9 @@ def apply(self, person_id, squeeze_factor):
20462044
appt_type='MinorSurg',
20472045
level='1a')
20482046
hsi1.initialise()
2047+
2048+
# Get facility ID
2049+
facID = int((re.search(r'\d+', next(iter(hsi1.expected_time_requests)))).group())
20492050

20502051
pharmacy_task_time = hsi1.expected_time_requests['FacilityID_' + str(facID) + '_Officer_Pharmacy']
20512052
nursing_task_time = hsi1.expected_time_requests['FacilityID_' + str(facID) + '_Officer_Nursing_and_Midwifery']

0 commit comments

Comments
 (0)