Closed robynstuart closed 8 months ago
Updates:
syphilis
as the disease instead of sir
... or maybe not - changing dead_uids
to an empty array in the sir
model doesn't fix the problem, but commenting out
self.ti_dead[rec_uids] = sim.ti + p.dur_inf.rvs(dead_uids)
on line 68 of sir.py does 🤔
Oh yikes, and this is just using the single rng! I am able to reproduce the bug, and have tested reproducibility extensively, so there's something strange going on here. One initial idea is that I saw a warning that ti_dead
was repeated in a ndict
, maybe something related to that?
Perhaps as expected, renaming ti_dead
in sir
didn't change anything. Hmm!
Found the bug!
self.ti_dead[rec_uids] = sim.ti + p.dur_inf.rvs(dead_uids)
That should be rec_uids
on the left, not dead_uids
!
Fixed
returns:
these should be identical