tapios / risk-networks

Code for risk networks: a blend of compartmental models, graphs, data assimilation and semi-supervised learning
Other
2 stars 2 forks source link

Throw an error when averaging duration is too small in simulate_temporal_contacts #37

Closed dburov190 closed 4 years ago

dburov190 commented 4 years ago

Added by @glwagner:

In addition to throwing an error for too-small averaging durations, this PR pins the output time of the contacts generation simulation to the specified time-interval, which is otherwise ragged due to random size of the time-steps.

Resolves #32 Resolves #29 Resolves #27

dburov190 commented 4 years ago

I'm not sure what changed while I was working on the bug fix; could someone resolve the conflicts please?

glwagner commented 4 years ago

I think I see what you've done and I can fix it up. I have a few questions though, which I'll put as comments in the diff.

glwagner commented 4 years ago

This PR is ready to be merged.