Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storing the generation time #273

Closed
mghosh00 opened this issue Dec 4, 2024 · 1 comment · Fixed by #267
Closed

Storing the generation time #273

mghosh00 opened this issue Dec 4, 2024 · 1 comment · Fixed by #267
Assignees

Comments

@mghosh00
Copy link
Contributor

mghosh00 commented Dec 4, 2024

Is your feature request related to a problem? Please describe.
We wish to store the generation time of a pandemic.

Describe the solution you'd like
We will record the latency period of the primary infector (during the infection) and add this to the exposure_period of the secondary infector (already defined in the code as the time between primary infector status I and secondary infector status E).

Additional context
This will be used in calculating the case reproduction number later down the line.

@mghosh00
Copy link
Contributor Author

mghosh00 commented Dec 4, 2024

Changes to be made:

core

Person

  • Need a self.generation_time_dict
  • Need a self.primary_infector_latency_period and corresponding setter
  • Need a store_generation_time function akin to store_serial_interval

routine

Simulation

  • Everything serial interval related needs to be copied for generation time

sweep

HostProgressionSweep

  • Need a person.store_generation_time() call

HouseholdSweep, PlaceSweep, SpatialSweep

  • Need an extra line with infectee.set_primary_infector_latency_period()

tests

  • Person
  • Simulation
  • HostProgressionSweep
  • HouseholdSweep
  • PlaceSweep
  • SpatialSweep

@mghosh00 mghosh00 self-assigned this Dec 4, 2024
@mghosh00 mghosh00 linked a pull request Dec 4, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant