From d735bd3e04b82ce1952ccd8d614114c4565dd266 Mon Sep 17 00:00:00 2001 From: Bingling Date: Thu, 5 Sep 2024 16:05:10 +0100 Subject: [PATCH] update logger --- src/tlo/methods/healthsystem.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tlo/methods/healthsystem.py b/src/tlo/methods/healthsystem.py index 0097d61d32..4475920610 100644 --- a/src/tlo/methods/healthsystem.py +++ b/src/tlo/methods/healthsystem.py @@ -3029,12 +3029,15 @@ def apply(self, population): officer_type = matches.group(2) self.module._daily_capabilities[officer] *= daily_cost.loc[officer_type, 'scale_up_factor'] - # save the scale up factor into logger + # save the scale up factor, updated cost and updated capabilities into logger + total_cost_this_year = 365.25 * (daily_cost.Total_Cost_Per_Day.sum() + daily_extra_budget) logger_summary.info(key='HRScaling', description='The HR scale up factor by office type given fractions of an extra budget', data={ 'scale_up_factor': daily_cost.scale_up_factor.to_dict(), 'year_of_scale_up': self.sim.date.year, + 'total_hr_salary': total_cost_this_year, + 'daily_capabilities': self.module._daily_capabilities.to_dict() } )