Commit 8dc59017 authored by Jorge Visca's avatar Jorge Visca

selfqarantine process for registering already quarantined

parent bc6e9810
......@@ -102,7 +102,7 @@ M.process = function ( person )
t = lib.esim.sleep_to( t+ds_model.T_E )
d.state = 'I'
if math.random()<ds_model.qp then
if math.random()<ds_model.qp or d.quarantined then
lib.esim.launch(selfQuarantineProcess, person)
d.selfq = true
end
......
......@@ -134,7 +134,7 @@ M.process = function ( person )
local time_start_I = t+ds_model._gamma
t = M.infector(person, time_start_I)
d.state = 'I'
if math.random()<ds_model.qp then
if math.random()<ds_model.qp or d.quarantined then
lib.esim.launch(selfQuarantineProcess, person)
d.selfq = true
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment