Skip to content

Commit

Permalink
update logger
Browse files Browse the repository at this point in the history
  • Loading branch information
BinglingICL committed Sep 5, 2024
1 parent 2899b02 commit d735bd3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tlo/methods/healthsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
)

Expand Down

0 comments on commit d735bd3

Please sign in to comment.