Skip to content

Commit

Permalink
Merge pull request #229 from SABS-R3-Epidemiology/kcgallagher-bugfix-…
Browse files Browse the repository at this point in the history
…recovered-reinfection

Bugfix - recovered reinfection
  • Loading branch information
KCGallagher authored Sep 26, 2023
2 parents 86451d0 + db82fec commit 0afe665
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pyEpiabm/pyEpiabm/core/cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,17 @@ def set_id(self, id: float):
self.id = id

def enqueue_person(self, person: Person):
"""Add person to queue for processing at end of iteration.
"""Add person to queue for processing at end of iteration, provided
they are not already recovered (and so may be infected).
Parameters
----------
person : Person
Person to enqueue
"""
self.person_queue.put(person)
if person.infection_status != InfectionStatus.Recovered:
self.person_queue.put(person)

def enqueue_PCR_testing(self, person: Person):
"""Add person to PCR testing queue for processing in testing
Expand Down Expand Up @@ -142,7 +144,7 @@ def notify_person_status_change(

def number_infectious(self):
"""Returns the total number of infectious people in each
cell, all ages combined.
cell, all ages combined.
Returns
-------
Expand Down

0 comments on commit 0afe665

Please sign in to comment.