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

No more `DiurnalContactInceptionRate`? #99

Closed agarbuno closed 4 years ago

agarbuno commented 4 years ago

I was doing some work with the DA and the kinetic model. When I merge into master I found out that the class DiurnalContactInceptionRate is no longer available. Is this reflected on the Readme.md?

The piece of the code that needs it is:

epidemic_simulator = EpidemicSimulator(
                 contact_network = contact_network,
           mean_contact_lifetime = mean_contact_lifetime,
          contact_inception_rate = DiurnalContactInceptionRate(minimum = 2, maximum = 22),
                transition_rates = transition_rates,
     community_transmission_rate = community_transmission_rate,
 hospital_transmission_reduction = hospital_transmission_reduction,
         static_contact_interval = static_contact_interval,
                  health_service = health_service,
                      start_time = start_time
                                      )
lubo93 commented 4 years ago

Yes, the ContactSimulator changed. You can just copy the relevant code lines from “simple epidemic.py” or “simulate idealized ... .py”. You’ll see that there are a minimum and maximum inception rate now. I’ll check the example tomorrow and send you some further comments.

odunbar commented 4 years ago

I have resolved this in our example.