Skip to content

Commit

Permalink
Reconcile setting of inpatients column, attempt 1
Browse files Browse the repository at this point in the history
  • Loading branch information
willGraham01 committed Jun 7, 2024
1 parent 6ac1eff commit edcced1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tlo/methods/healthsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1556,9 +1556,10 @@ def set_hs_is_inpatient_series(self) -> None:
to reflect the current (alive) persons who are inpatients.
"""
is_alive = self.sim.population.props.is_alive
self.sim.population.props["hs_is_inpatient"] = is_alive & is_alive.index.isin(
hs_is_inpatient = is_alive[is_alive].index.isin(
self.bed_days.all_inpatients
)
self.sim.population.props.loc[is_alive, "hs_is_inpatient"] = hs_is_inpatient

def get_appt_footprint_as_time_request(self, facility_info: FacilityInfo, appt_footprint: dict):
"""
Expand Down

0 comments on commit edcced1

Please sign in to comment.