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

Bug in infection times? #53

Closed
afmagee42 opened this issue Dec 20, 2024 · 1 comment · Fixed by #55
Closed

Bug in infection times? #53

afmagee42 opened this issue Dec 20, 2024 · 1 comment · Fixed by #55
Assignees
Labels
bug Something isn't working

Comments

@afmagee42
Copy link
Contributor

It looks to me like we're missing a infection_times += t_infectious somewhere.

That is, we generate waiting times in generate_infection() but store them as the property self.infections[person]["infection_times"] and add them to the queue as if they were absolute times.

@afmagee42 afmagee42 added the bug Something isn't working label Dec 20, 2024
@swo swo self-assigned this Dec 20, 2024
@swo
Copy link
Contributor

swo commented Dec 20, 2024

Good catch. We should probably:

  • rename generate_infection_times -> generation_infection_delays
  • put an assert in the simulation, that the infection times are all between the onset of infectiousness and recovery time

afmagee42 added a commit that referenced this issue Dec 23, 2024
@swo swo assigned afmagee42 and unassigned swo Dec 31, 2024
afmagee42 added a commit that referenced this issue Jan 7, 2025
works

rename

use new plot

dropped these

update deps

cleanup #53

use get_person_properties() everywhere

clean up plotting

add matplotlib (#61)

cleanup per @swo #55

bug fix requires test changes

triangles

precommit

let counterfactual show passive detection, remove unused par

put axis back where it belongs, optional gen plotting
@afmagee42 afmagee42 linked a pull request Jan 8, 2025 that will close this issue
afmagee42 added a commit that referenced this issue Jan 10, 2025
* drafting plotting

works

rename

use new plot

dropped these

update deps

cleanup #53

use get_person_properties() everywhere

clean up plotting

add matplotlib (#61)

cleanup per @swo #55

bug fix requires test changes

triangles

precommit

let counterfactual show passive detection, remove unused par

put axis back where it belongs, optional gen plotting

* rebase smuggled in non-precommit-compliance

* legend

* trying to make the triangles perceptually same size... why is it not working?

* new plotting takes longer

* debug statement

* small tweaks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants