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

Events model #26

Open
dabreegster opened this issue Jul 13, 2022 · 1 comment
Open

Events model #26

dabreegster opened this issue Jul 13, 2022 · 1 comment

Comments

@dabreegster
Copy link
Collaborator

At the end of def step() in simulator.py, we'll run the events logic. Based on the current date, go through each event and call findVisitors. Then run transmission logic in Python and upload the new disease statuses to OpenCL.

So one decision: how do we draw visitors for the event? We can't just use the snapshot / OpenCL state, because we've lost household membership and other state by then. It also ties things to ASPICS too closely. So I think now ASPICS needs to read the snapshot file, the original protobuf file, and this optional events file. When we draw visitors, we also have to filter by ASPICS current state (dead or symptomatic people don't go to events).

Need to filter events by the study area boundary.

Code from @HSalat attached
eventsHandler.py.txt

@dabreegster
Copy link
Collaborator Author

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

No branches or pull requests

1 participant