-
Notifications
You must be signed in to change notification settings - Fork 15
Pass through updated appointment footprint #323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The TLOmodel/src/tlo/methods/labour.py Lines 2909 to 2913 in 5f82456
which I think may not be doing what was intended. @joehcollins @tbhallett was the intention to change from an appointment footprint requiring |
As the other test failures are all in pregnancy related test modules ( |
I wil defer to @joehcollins on this, but I would guess that the line within the long |
Hi @tbhallett @matt-graham, yes sorry thats a very old bit of code which was intending to do exactly what Tim describes above. Very happy for you to change. |
Thanks @joehcollins, I'll update this now. |
The change in |
All looks good to me |
Fixes #291.
Changes
HSI_Event.run
to return the updated appointment footprint, if any, returned by theapply
method of the event.To get the tests to pass I also needed to change the logic in
HealthSystemScheduler.apply
slightly to only recompute the squeeze factors when an updated appointment footprint is returned ifHealthSystem.mode_appt_constraints
is non-zero. While the the squeeze factors are initially set to zero in this case this previously was not guaranteed to be the case on the recomputation following an updated footprint, however this wasn't previously causing a test failure as the updated footprint was not being passed through and so this code path was never active.