|
covid-sim
|
Functions | |
| try_remove (f) | |
| parse_args () | |
Variables | |
| args = parse_args() | |
| list | united_states = [ "United_States" ] |
| list | canada = [ "Canada" ] |
| list | usa_territories = ["Alaska", "Hawaii", "Guam", "Virgin_Islands_US", "Puerto_Rico", "American_Samoa"] |
| list | nigeria = ["Nigeria"] |
| exe = args.covidsim | |
| build_dir = os.path.join(args.outputdir, "build") | |
| ignore_errors | |
| exist_ok | |
| cwd = os.getcwd() | |
| check | |
| outputdir | |
| admin_file | |
| str | wpop_file_root = "usacan" |
| wpop_file_gz | |
| wpop_file | |
| wpop_bin | |
| pp_file = os.path.join(args.paramdir, "preUS_R0=2.0.txt") | |
| no_int_file = os.path.join(args.paramdir, "p_NoInt.txt") | |
| list | control_roots = [ "PC7_CI_HQ_SD" ] |
| cf = os.path.join(args.paramdir, "p_{0}.txt".format(root)) | |
| school_file = None | |
| float | r = 3.0 |
| float | rs = r/2 |
| network_bin | |
| list | cmd |
| process = subprocess.run(cmd, check=True) | |
Run the sample data. See README.md in this directory for more information.
| run_sample.parse_args | ( | ) |
Parse the arguments. On exit: Returns the result of calling argparse.parse() args.covidsim is the name of the CovidSim executable args.datadir is the directory with the input data args.paramdir is the directory with the parameters in it args.outputdir is the directory where output will be stored args.threads is the number of threads to use
Definition at line 21 of file run_sample.py.
| run_sample.try_remove | ( | f | ) |
Definition at line 15 of file run_sample.py.
| run_sample.admin_file |
Definition at line 116 of file run_sample.py.
| run_sample.args = parse_args() |
Definition at line 80 of file run_sample.py.
| run_sample.build_dir = os.path.join(args.outputdir, "build") |
Definition at line 92 of file run_sample.py.
| list run_sample.canada = [ "Canada" ] |
Definition at line 84 of file run_sample.py.
| run_sample.cf = os.path.join(args.paramdir, "p_{0}.txt".format(root)) |
Definition at line 187 of file run_sample.py.
| run_sample.check |
Definition at line 101 of file run_sample.py.
| list run_sample.cmd |
Definition at line 218 of file run_sample.py.
| list run_sample.control_roots = [ "PC7_CI_HQ_SD" ] |
Definition at line 185 of file run_sample.py.
| run_sample.cwd = os.getcwd() |
Definition at line 97 of file run_sample.py.
| run_sample.exe = args.covidsim |
Definition at line 90 of file run_sample.py.
| run_sample.exist_ok |
Definition at line 96 of file run_sample.py.
| run_sample.ignore_errors |
Definition at line 95 of file run_sample.py.
| run_sample.network_bin |
Definition at line 210 of file run_sample.py.
| list run_sample.nigeria = ["Nigeria"] |
Definition at line 86 of file run_sample.py.
| run_sample.no_int_file = os.path.join(args.paramdir, "p_NoInt.txt") |
Definition at line 175 of file run_sample.py.
| run_sample.outputdir |
Definition at line 113 of file run_sample.py.
| run_sample.pp_file = os.path.join(args.paramdir, "preUS_R0=2.0.txt") |
Definition at line 162 of file run_sample.py.
| run_sample.process = subprocess.run(cmd, check=True) |
Definition at line 240 of file run_sample.py.
| float run_sample.r = 3.0 |
Definition at line 205 of file run_sample.py.
| float run_sample.rs = r/2 |
Definition at line 206 of file run_sample.py.
| run_sample.school_file = None |
Definition at line 194 of file run_sample.py.
| list run_sample.united_states = [ "United_States" ] |
Definition at line 83 of file run_sample.py.
| list run_sample.usa_territories = ["Alaska", "Hawaii", "Guam", "Virgin_Islands_US", "Puerto_Rico", "American_Samoa"] |
Definition at line 85 of file run_sample.py.
| run_sample.wpop_bin |
Definition at line 149 of file run_sample.py.
| run_sample.wpop_file |
Definition at line 146 of file run_sample.py.
| run_sample.wpop_file_gz |
Definition at line 136 of file run_sample.py.
| str run_sample.wpop_file_root = "usacan" |
Definition at line 128 of file run_sample.py.