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

Improve syntax of single initial condition file. #55

Open
jcblemai opened this issue May 23, 2023 · 1 comment
Open

Improve syntax of single initial condition file. #55

jcblemai opened this issue May 23, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request low priority

Comments

@jcblemai
Copy link
Collaborator

jcblemai commented May 23, 2023

Branch init_file PR #54 add the ability to:

  • load seeding from a single file (just added)
seeding:
  method: "FromFile"
  seeding_file: pathtoyourfile.csv  # ideally in a data/ subfolder
  • load Initial Conditions from a single File (just added)
initial_conditions:
  method: "FromFile"
  initial_conditions_file: pathtoyourfile.csv/.parquet # ideally in a data/ subfolder

where this file is formatted like a seir file (nodes as columns, mc_name, …) and it’ll filter for the date that is the same as the config start_date (i.e the same as when we do a continuation resume)

But the existing method to load Initial Conditions from a single File is not really great
This method, which has a warning because there is no unit test covering it and I haven’t tested it in depth, but should work, sets initial condition from a csv file that is

initial_conditions:
  method: "SetInitialConditions"
  initial_conditions_file: pathtoyourfile.csv # ideally in a data/ subfolder

here the file is formatted as:

comp,place,amount
S_unvaccinated_ALPHA,01000,20

where the order of the meta compartment is the same as in the config (e.g you cannot say unvaccinated_S_ALPHA ). This method is not really finished because for now it requires that all compartments needs to be specified (I would like the user to be able to specify only a few, rest being 0 by default) and because a better syntax is needed (for meta compartments, more like seeding is)

@jcblemai jcblemai self-assigned this May 23, 2023
@jcblemai jcblemai added the enhancement New feature or request label May 23, 2023
@jlessler
Copy link
Collaborator

@alsnhll is going to review and see how best to handle open issues around this.

@jcblemai jcblemai added this to the Paper resubmission milestone Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority
Projects
None yet
Development

No branches or pull requests

4 participants