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

Removing/data path #208

Merged
merged 97 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
6ed0e66
Update model_info.py
emprzy Apr 15, 2024
8bf7412
Update inference_job_launcher.py
emprzy Apr 15, 2024
8ce393d
Update integration_benchmark.ipynb
emprzy Apr 15, 2024
4388c62
Update inference_job_launcher.py
emprzy Apr 16, 2024
bdb16d8
Update model_info.py
emprzy Apr 16, 2024
beae824
Update config.yml
emprzy Apr 16, 2024
be1c0e8
Update config_min_test.yml
emprzy Apr 16, 2024
4bf609c
Update config_minimal.yaml
emprzy Apr 16, 2024
08a3885
Update config_test.yml
emprzy Apr 16, 2024
31486ba
Update config_minimal.yaml
emprzy Apr 16, 2024
bded719
Update config_test.yml
emprzy Apr 16, 2024
af337e2
Update config_test_spatial_group_npi.yml
emprzy Apr 16, 2024
432f6d6
Update config.yml
emprzy Apr 17, 2024
4b45869
Update config_load.yml
emprzy Apr 17, 2024
acfaca4
Update config_mc_selection.yml
emprzy Apr 17, 2024
2b2e797
Update config_npi.yml
emprzy Apr 17, 2024
9f3fae9
Update config_npi_custom_pnames.yml
emprzy Apr 17, 2024
6461f55
Update config_test.yml
emprzy Apr 17, 2024
242ff56
Update config.yml
emprzy Apr 17, 2024
2224b83
Update config_npi.yml
emprzy Apr 17, 2024
fadee37
Update config_compartment.yml
emprzy Apr 17, 2024
fb8b9ef
Update config_compartmental_model_format.yml
emprzy Apr 17, 2024
f92709d
Update config_compartmental_model_format_with_covariates.yml
emprzy Apr 17, 2024
796ad50
Update config_compartmental_model_full.yml
emprzy Apr 17, 2024
22a9616
Update config_continuation_resume.yml
emprzy Apr 17, 2024
faf6909
Update config_inference_resume.yml
emprzy Apr 17, 2024
b753331
Update config_parallel.yml
emprzy Apr 17, 2024
d568e08
Update config_resume.yml
emprzy Apr 17, 2024
f2bd9e4
Update config_seir.yml
emprzy Apr 17, 2024
2e1b3be
Update config_seir_integration_method_rk4_1.yml
emprzy Apr 17, 2024
5520d20
Update config_seir_integration_method_rk4_2.yml
emprzy Apr 17, 2024
5ec69e6
Update config_seir_no_dt.yml
emprzy Apr 17, 2024
d2f2c9f
Update config_seir_no_integration.yml
emprzy Apr 17, 2024
57b8ac3
Update config_seir_unknown_integration.yml
emprzy Apr 17, 2024
8a46a6b
Update config_test.yml
emprzy Apr 17, 2024
959a1e8
Update config_test.yml
emprzy Apr 17, 2024
ca75263
Update config.yml
emprzy Apr 17, 2024
ae36d74
Update config_min_test.yml
emprzy Apr 17, 2024
3b9ebf5
Update config_minimal.yaml
emprzy Apr 17, 2024
26e0b6f
Update config_minimal.yaml
emprzy Apr 17, 2024
321ba83
Update config_test.yml
emprzy Apr 17, 2024
bd7eeae
Update config_npi.yml
emprzy Apr 17, 2024
7d3adc9
Update config_test_spatial_group_npi.yml
emprzy Apr 17, 2024
04d8bd6
Update config.yml
emprzy Apr 17, 2024
c9b2beb
Update config_load.yml
emprzy Apr 17, 2024
113afbf
Update config_mc_selection.yml
emprzy Apr 17, 2024
5105513
Update config_npi.yml
emprzy Apr 17, 2024
43a2424
Update config_npi_custom_pnames.yml
emprzy Apr 17, 2024
576f9bc
Update config_test.yml
emprzy Apr 17, 2024
fa96ce5
Update config.yml
emprzy Apr 17, 2024
423eeab
Update config_compartment.yml
emprzy Apr 17, 2024
60b0897
Update config_compartmental_model_format.yml
emprzy Apr 17, 2024
d08a8c3
Update config_compartmental_model_format_with_covariates.yml
emprzy Apr 17, 2024
2a1d5ef
Update config_compartmental_model_full.yml
emprzy Apr 17, 2024
0155c08
Update config_continuation_resume.yml
emprzy Apr 17, 2024
2d87b80
Update config_inference_resume.yml
emprzy Apr 17, 2024
c223aeb
Update config_parallel.yml
emprzy Apr 17, 2024
94ed3d4
Update config_resume.yml
emprzy Apr 17, 2024
523d1de
Update config_seir.yml
emprzy Apr 17, 2024
a5a9985
Update config_seir_integration_method_rk4_1.yml
emprzy Apr 17, 2024
8a96f43
Update config_seir_integration_method_rk4_2.yml
emprzy Apr 17, 2024
30fde3a
Update config_seir_no_dt.yml
emprzy Apr 17, 2024
5c342b9
Update config_seir_no_integration.yml
emprzy Apr 17, 2024
60a6bc1
Update config_seir_unknown_integration.yml
emprzy Apr 17, 2024
acdd667
Update config_test.yml
emprzy Apr 17, 2024
0b838e6
Update config.yml
emprzy Apr 18, 2024
de53701
Update config_min_test.yml
emprzy Apr 18, 2024
095b931
Update config_minimal.yaml
emprzy Apr 18, 2024
325819b
Update config_test.yml
emprzy Apr 18, 2024
b75b570
Update config_minimal.yaml
emprzy Apr 18, 2024
ac2c9f8
Update config_test.yml
emprzy Apr 18, 2024
a1b6510
Update config_npi.yml
emprzy Apr 18, 2024
030a5cd
Update config_test_spatial_group_npi.yml
emprzy Apr 18, 2024
bfee256
Update config_test.yml
emprzy Apr 18, 2024
82c4b5a
Update config.yml
emprzy Apr 18, 2024
04b3230
Update config_compartment.yml
emprzy Apr 18, 2024
848d074
Update config_compartmental_model_format.yml
emprzy Apr 18, 2024
9bc0bc0
Update config_compartmental_model_format_with_covariates.yml
emprzy Apr 18, 2024
e08919f
Update config_compartmental_model_full.yml
emprzy Apr 18, 2024
e16d0cd
Update config_continuation_resume.yml
emprzy Apr 18, 2024
d093060
Update config_inference_resume.yml
emprzy Apr 18, 2024
799a1bf
Update config_parallel.yml
emprzy Apr 18, 2024
c0ae7ed
Update config_resume.yml
emprzy Apr 18, 2024
c35ab7f
Update config_seir.yml
emprzy Apr 18, 2024
c4e8f8f
Update config_seir_integration_method_rk4_1.yml
emprzy Apr 18, 2024
c66077e
Update config_seir_integration_method_rk4_2.yml
emprzy Apr 18, 2024
62d68ee
Update config_seir_no_dt.yml
emprzy Apr 18, 2024
568614e
Update config_seir_no_integration.yml
emprzy Apr 18, 2024
92bc61b
Update config_seir_unknown_integration.yml
emprzy Apr 18, 2024
75c448b
Update config_test.yml
emprzy Apr 18, 2024
4cdc9c0
Update test_seir.py
emprzy Apr 18, 2024
c15fe83
Merge branch 'main' into removing/data-path
jcblemai Apr 19, 2024
ecb9cb9
Removing config$data_path
emprzy Apr 24, 2024
d038f55
Merge branch 'main' into removing/data-path
jcblemai Apr 25, 2024
66dba36
Creating appropriate directory in datasetup R files
emprzy Apr 25, 2024
550958e
Merge branch 'removing/data-path' of https://github.com/emprzy/flepiM…
emprzy Apr 25, 2024
6c4b968
Fixed syntax in paste0 functions
emprzy Apr 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion batch/inference_job_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,9 @@ def autodetect_params(config, data_path, *, num_jobs=None, sims_per_job=None, nu
print(f"Setting number of blocks to {num_blocks} [via num_blocks (-k) argument]")
print(f"Setting sims per job to {sims_per_job} [via {iterations_per_slot} iterations_per_slot in config]")
else:
geodata_fname = pathlib.Path(data_path, config["data_path"]) / config["subpop_setup"]["geodata"]
if config["data_path"]:
raise ValueError("The config has a data_path section. This is no longer supported.")
geodata_fname = pathlib.Path(data_path) / config["subpop_setup"]["geodata"]
with open(geodata_fname) as geodata_fp:
num_subpops = sum(1 for line in geodata_fp)

Expand Down
2 changes: 1 addition & 1 deletion flepimop/gempyor_pkg/docs/integration_benchmark.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"config.set_file(config_path)\n",
"\n",
"spatial_config = config[\"subpop_setup\"]\n",
"spatial_base_path = pathlib.Path(\"../../COVID19_USA/\" + config[\"data_path\"].get())\n",
"spatial_base_path = pathlib.Path(\"../../COVID19_USA/\")\n",
"seir_modifiers_scenario = seir_modifiers_scenario\n",
"outcome_modifiers_scenario = outcome_modifiers_scenario\n",
"stoch_traj_flag = stoch_traj_flag # Truthy: stochastic simulation, Falsy: determnistic mean of the binomial draws\n",
Expand Down
5 changes: 3 additions & 2 deletions flepimop/gempyor_pkg/src/gempyor/model_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ def __init__(

# 3. What about subpopulations
spatial_config = config["subpop_setup"]
spatial_base_path = config["data_path"].get()
spatial_base_path = pathlib.Path(spatial_path_prefix + spatial_base_path)
if config["data_path"].exists():
raise ValueError("The config has a data_path section. This is no longer supported.")
spatial_base_path = pathlib.Path(spatial_path_prefix)

self.subpop_struct = subpopulation_structure.SubpopulationStructure(
setup_name=config["setup_name"].get(),
Expand Down
1 change: 0 additions & 1 deletion flepimop/gempyor_pkg/tests/interface/data/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: minimal for interface
setup_name: minimal4interface
start_date: 2020-01-31
end_date: 2020-05-31
data_path: data
nslots: 1


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: minimal for interface
setup_name: minimal4interface
start_date: 2020-01-31
end_date: 2020-05-31
data_path: data
nslots: 1


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: minimal
setup_name: minimal
start_date: 2020-01-31
end_date: 2020-05-31
data_path: data
nslots: 15


Expand Down
1 change: 0 additions & 1 deletion flepimop/gempyor_pkg/tests/interface/data/config_test.yml
jcblemai marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: minimal_test
setup_name: minimal_test_setup
start_date: 2020-01-31
end_date: 2020-05-31
data_path: data
nslots: 5


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: USA
setup_name: FCH
smh_round: R12
data_path: data
start_date: 2020-01-01
end_date: 2022-09-03
end_date_groundtruth: 2022-03-05
Expand Down
1 change: 0 additions & 1 deletion flepimop/gempyor_pkg/tests/npi/data/config_minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: minimal
setup_name: minimal
start_date: 2020-01-31
end_date: 2020-05-31
data_path: data
nslots: 15


Expand Down
1 change: 0 additions & 1 deletion flepimop/gempyor_pkg/tests/npi/data/config_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: minimal_test
setup_name: minimal_test_setup
start_date: 2020-01-31
end_date: 2020-05-31
data_path: data
nslots: 5


Expand Down
Loading