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

make a run sublist in dat to store runtime elements #814

Open
AdrienLeGuillou opened this issue Feb 15, 2023 · 2 comments
Open

make a run sublist in dat to store runtime elements #814

AdrienLeGuillou opened this issue Feb 15, 2023 · 2 comments
Assignees
Labels

Comments

@AdrienLeGuillou
Copy link
Member

AdrienLeGuillou commented Feb 15, 2023

we could have a run sublist in dat to contain everything that is made by netsim and required between timesteps.

this would include:

  • _last_uid
  • _current_timestep
  • the positive STI diagnostic list

with this design, we could simply copy this run sublist in the reinit modules instead of having to specify each element that should be passed over on reinitialization.

This sublist could comme with accessors similar to get/set_attr

Note: I chose run to mimic the linux naming convention where /run and /var/run are folders created early at runtime to hold shared elements

What do you think @smjenness

@smjenness
Copy link
Collaborator

I like it! It organizes all the common type of data elements in a logical way.

@AdrienLeGuillou
Copy link
Member Author

I think I can make it work for the window_counter to play around the idea, then formalize it for the rest of EpiModel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants