Skip to content

Commit 7253f1a

Browse files
Correct staff count log (#1806)
Co-authored-by: Tim Hallett <39991060+tbhallett@users.noreply.github.com>
1 parent ef2a96d commit 7253f1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tlo/methods/healthsystem.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3121,14 +3121,14 @@ def log_number_of_staff(self):
31213121
# both of which would have been rescaled to current efficiency levels if scale_to_effective_capabilities=True
31223122
# This returns the number of staff counts normalised by the self.capabilities_coefficient parameter
31233123
current_staff_count = {}
3124-
for clinic in sorted(hs.capabilities_today):
3124+
for clinic in sorted(hs._daily_capabilities):
31253125
current_staff_count[clinic] = {}
3126-
for fid in sorted(hs.capabilities_today[clinic]):
3126+
for fid in sorted(hs._daily_capabilities[clinic]):
31273127
denom = hs._daily_capabilities_per_staff[clinic][fid]
31283128
if denom == 0:
31293129
current_staff_count[clinic][fid] = 0
31303130
else:
3131-
current_staff_count[clinic][fid] = hs.capabilities_today[clinic][fid] / denom
3131+
current_staff_count[clinic][fid] = hs._daily_capabilities[clinic][fid] / denom
31323132

31333133
logger_summary.info(
31343134
key="number_of_hcw_staff",

0 commit comments

Comments
 (0)