You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In her analysis of the effects of consumables availability, @sakshimohan has noted that there are large numbers of recurring HSI_Events for the RTI module.
This appears to be due to logic in several of the HSI like this:
# check for availability of consumables ifconsumables_available:
# do somethingelse:
# reschedule this event instance for tomorrowreturnself.make_appt_footprint({}) # return of blank footprint shows that the HSI did not really take up any time
This could be fixed by changing the logic in each place to be of the form:
# in __init__() of the HSI_Eventself._number_of_times_this_event_has_run=0self._maximum_number_times_event_should_run=self.module.parameters['Maximum_Number_Of_Times_HSI_Events_Should_Run'] # module declares this parameter (value could be 5)# at the top of the apply() of the HSI_Eventself._number_of_times_this_event_has_run+=1# check for availability of consumables ifconsumables_available:
# do somethingelse:
ifself._number_of_times_this_event_has_run<self._maximum_number_times_event_should_run:
# reschedule this event instance for tomorrowreturnself.make_appt_footprint({})
The text was updated successfully, but these errors were encountered:
In her analysis of the effects of consumables availability, @sakshimohan has noted that there are large numbers of recurring
HSI_Events
for theRTI
module.This appears to be due to logic in several of the HSI like this:
e.g.
TLOmodel/src/tlo/methods/rti.py
Lines 3856 to 3862 in 4e983a5
This could be fixed by changing the logic in each place to be of the form:
The text was updated successfully, but these errors were encountered: