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 all 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
22 changes: 11 additions & 11 deletions datasetup/build_US_setup.R
saraloo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,10 @@ if (length(config) == 0) {
stop("no configuration found -- please set CONFIG_PATH environment variable or use the -c command flag")
}

outdir <- config$data_path
jcblemai marked this conversation as resolved.
Show resolved Hide resolved
dir.create(outdir, showWarnings = FALSE, recursive = TRUE)

# Aggregation to state level if in config
state_level <- ifelse(!is.null(config$subpop_setup$state_level) && config$subpop_setup$state_level, TRUE, FALSE)

dir.create(outdir, showWarnings = FALSE, recursive = TRUE)
# commute_data <- arrow::read_parquet(file.path(opt$p,"datasetup", "usdata","united-states-commutes","commute_data.gz.parquet"))
# census_data <- arrow::read_parquet(file.path(opt$p,"datasetup", "usdata","united-states-commutes","census_tracts_2010.gz.parquet"))

Expand Down Expand Up @@ -156,22 +153,25 @@ if (length(config$subpop_setup$geodata) > 0) {
# manually remove PR
census_data <- census_data %>% filter(USPS != "PR")

write.csv(file = file.path(outdir, geodata_file), census_data, row.names=FALSE)
print(paste("Wrote geodata file:", file.path(outdir, geodata_file)))

if(!dir.exists(dirname(config$subpop_setup$geodata))){
dir.create(dirname(config$subpop_setup$geodata))}
write.csv(file = file.path(geodata_file), census_data, row.names=FALSE)
print(paste("Wrote geodata file:", file.path(geodata_file)))




# MOBILITY DATA (COMMUTER DATA) ------------------------------------------------------------


if(state_level & !file.exists(paste0(config$data_path, "/", config$subpop_setup$mobility))){
if(state_level & !file.exists(paste0(config$subpop_setup$mobility))){

warning(paste("State-level mobility files must be created manually because `build_US_setup.R` does not generate a state-level mobility file automatically. No valid mobility file named", paste0(config$data_path, "/", config$subpop_setup$mobility), "(specified in the config) currently exists. Please check again."))

} else if(state_level & file.exists(paste0(config$data_path, "/", config$subpop_setup$mobility))){
} else if(state_level & file.exists(paste0(config$subpop_setup$mobility))){

warning(paste("Using existing state-level mobility file named", paste0(config$data_path, "/", config$subpop_setup$mobility)))
warning(paste("Using existing state-level mobility file named", paste0(config$subpop_setup$mobility)))

} else{

Expand Down Expand Up @@ -209,21 +209,21 @@ if(state_level & !file.exists(paste0(config$data_path, "/", config$subpop_setup$
print(census_data$subpop)
stop("There was a problem generating the mobility matrix")
}
write.table(file = file.path(outdir, mobility_file), as.matrix(rc[,-1]), row.names=FALSE, col.names = FALSE, sep = " ")
write.table(file = file.path(mobility_file), as.matrix(rc[,-1]), row.names=FALSE, col.names = FALSE, sep = " ")

} else if(endsWith(mobility_file, '.csv')) {

rc <- commute_data
names(rc) <- c("ori","dest","amount")

rc <- rc[rc$ori != rc$dest,]
write.csv(file = file.path(outdir, mobility_file), rc, row.names=FALSE)
write.csv(file = file.path(mobility_file), rc, row.names=FALSE)

} else {
stop("Only .txt and .csv extensions supported for mobility matrix. Please check config's subpop_setup::mobility.")
}

print(paste("Wrote mobility file:", file.path(outdir, mobility_file)))
print(paste("Wrote mobility file:", file.path(mobility_file)))
}


Expand Down
10 changes: 4 additions & 6 deletions datasetup/build_covid_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,14 @@ if (exists("config$inference$gt_source")) {
opt$gt_data_source <- config$inference$gt_source
}

outdir <- config$data_path
jcblemai marked this conversation as resolved.
Show resolved Hide resolved
# filterUSPS <- config$subpop_setup$modeled_states
filterUSPS <- c("WY","VT","DC","AK","ND","SD","DE","MT","RI","ME","NH","HI","ID","WV","NE","NM",
"KS","NV","MS","AR","UT","IA","CT","OK","OR","KY","LA","AL","SC","MN","CO","WI",
"MD","MO","IN","TN","MA","AZ","WA","VA","NJ","MI","NC","GA","OH","IL","PA","NY","FL","TX","CA")
dir.create(outdir, showWarnings = FALSE, recursive = TRUE)

# Aggregation to state level if in config
state_level <- ifelse(!is.null(config$subpop_setup$state_level) && config$subpop_setup$state_level, TRUE, FALSE)

dir.create(outdir, showWarnings = FALSE, recursive = TRUE)

# source data functions
source(file.path(opt$path, "datasetup/data_setup_source.R"))
Expand Down Expand Up @@ -221,7 +218,7 @@ if (any(grepl("fluview", opt$gt_data_source))){

max(fluview_data$Update)

census_data <- read_csv(file = file.path(config$data_path, config$subpop_setup$geodata))
jcblemai marked this conversation as resolved.
Show resolved Hide resolved
census_data <- read_csv(file = file.path(config$subpop_setup$geodata))
fluview_data <- fluview_data %>%
dplyr::inner_join(census_data %>% dplyr::select(source = USPS, FIPS = subpop)) %>%
dplyr::select(Update, source, FIPS, incidD)
Expand Down Expand Up @@ -286,7 +283,7 @@ if (any(grepl("fluview", opt$gt_data_source))){
#
# max(fluview_data$Update)
#
# census_data <- read_csv(file = file.path(config$data_path, config$subpop_setup$geodata))
# census_data <- read_csv(file = file.path(config$subpop_setup$geodata))
# fluview_data <- fluview_data %>%
# left_join(census_data %>% dplyr::select(source = USPS, FIPS = subpop)) %>%
# dplyr::select(Update, source, FIPS, incidD)
Expand Down Expand Up @@ -392,7 +389,8 @@ us_data <- us_data %>%
# mutate(across(starts_with("incid"), ~ replace_na(.x, 0))) %>%
mutate(across(starts_with("incid"), ~ as.numeric(.x)))


if(!dir.exists(dirname(config$inference$gt_data_path))){
dir.create(dirname(config$inference$gt_data_path))}
# Save
write_csv(us_data, config$inference$gt_data_path)

Expand Down
9 changes: 4 additions & 5 deletions datasetup/build_flu_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,11 @@ if (length(config) == 0) {
stop("no configuration found -- please set CONFIG_PATH environment variable or use the -c command flag")
}

outdir <- config$data_path
jcblemai marked this conversation as resolved.
Show resolved Hide resolved
filterUSPS <- config$subpop_setup$modeled_states
dir.create(outdir, showWarnings = FALSE, recursive = TRUE)

# Aggregation to state level if in config
state_level <- ifelse(!is.null(config$subpop_setup$state_level) && config$subpop_setup$state_level, TRUE, FALSE)

dir.create(outdir, showWarnings = FALSE, recursive = TRUE)



Expand All @@ -59,7 +56,7 @@ source("https://raw.githubusercontent.com/cdcepi/Flusight-forecast-data/master/d

# Pull daily hospitalizations for model run
us_data <- load_flu_hosp_data(temporal_resolution = 'daily', na.rm = TRUE)
locs <- read_csv(file.path(config$data_path, config$subpop_setup$geodata))
locs <- read_csv(file.path(config$subpop_setup$geodata))

# fix string pad issue on left side
us_data <- us_data %>%
Expand All @@ -83,6 +80,8 @@ us_data <- us_data %>%
filter(date >= lubridate::as_date(config$start_date) & date <= lubridate::as_date(end_date_)) %>%
filter(!is.na(source))

if(!dir.exists(dirname(config$inference$gt_data_path))){
dir.create(dirname(config$inference$gt_data_path))}
write_csv(us_data, config$inference$gt_data_path)


Expand All @@ -100,7 +99,7 @@ adjust_for_variant <- !is.null(variant_props_file)
# if (adjust_for_variant){
#
# # Variant Data (need to automate this data pull still)
# #variant_data <- read_csv(file.path(config$data_path, "variant/WHO_NREVSS_Clinical_Labs.csv"), skip = 1)
# #variant_data <- read_csv(file.path("variant/WHO_NREVSS_Clinical_Labs.csv"), skip = 1)
# variant_data <- cdcfluview::who_nrevss(region="state", years = 2022)$clinical_labs
#
# # location data
Expand Down
16 changes: 8 additions & 8 deletions datasetup/build_nonUS_setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,14 @@ if (length(config) == 0) {
stop("no configuration found -- please set CONFIG_PATH environment variable or use the -c command flag")
}

outdir <- config$data_path
filterADMIN0 <- config$subpop_setup$modeled_states

dir.create(outdir, showWarnings = FALSE, recursive = TRUE)

# Read in needed data
commute_data <- readr::read_csv(file.path(config$data_path, "geodata", opt$mobility)) %>%
commute_data <- readr::read_csv(file.path("geodata", opt$mobility)) %>%
mutate(OGEOID = as.character(OGEOID),
DGEOID = as.character(DGEOID))
census_data <- readr::read_csv(file.path(config$data_path, "geodata", opt$population)) %>%
census_data <- readr::read_csv(file.path("geodata", opt$population)) %>%
mutate(GEOID = as.character(GEOID))

# Filter if needed
Expand Down Expand Up @@ -97,22 +95,24 @@ if(opt$w){
if(!isTRUE(all(rc$OGEOID == census_data$GEOID))){
stop("There was a problem generating the mobility matrix")
}
write.table(file = file.path(outdir,'mobility.txt'), as.matrix(rc[,-1]), row.names=FALSE, col.names = FALSE, sep = " ")
write.table(file = file.path('mobility.txt'), as.matrix(rc[,-1]), row.names=FALSE, col.names = FALSE, sep = " ")
} else {
names(rc) <- c("ori","dest","amount")
rc <- rc[rc$ori != rc$dest,]
write.csv(file = file.path(outdir,'mobility.csv'), rc, row.names=FALSE)
write.csv(file = file.path('mobility.csv'), rc, row.names=FALSE)
}

# Save population geodata
if(!dir.exists(dirname(config$subpop_setup$geodata))){
dir.create(dirname(config$subpop_setup$geodata))}
names(census_data) <- c("subpop","admin2","admin0","pop")
write.csv(file = file.path(outdir,'geodata.csv'), census_data,row.names=FALSE)
write.csv(file = file.path('geodata.csv'), census_data,row.names=FALSE)

print("Census Data Check (up to 6 rows)")
print(head(census_data))
print("Commute Data Check (up to 6 rows)")
print(head(commute_data))

print(paste0("mobility.csv/.txt and geodata.csv saved to: ", outdir))
#print(paste0("mobility.csv/.txt and geodata.csv saved to: ", outdir))


4 changes: 2 additions & 2 deletions flepimop/R_packages/flepicommon/R/config_test_new.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ validation_list$subpop_setup$geodata <- function(value, full_config,config_name)
print("No geodata path mentioned in the configuration file")
return(FALSE)
}else{
path=paste(full_config$data_path,'/',value,sep='')
path=paste(full_config$subpop_setup$geodata,'/',value,sep='')
if (!file.exists(path)) {
print(paste("The mentioned geodata file :", value, "could not be found."))
return(FALSE)
Expand All @@ -136,7 +136,7 @@ validation_list$subpop_setup$mobility <- function(value, full_config,config_name
print("No mobility path mentioned in the configuration file")
return(FALSE)
}else{
path=paste(full_config$data_path,'/',value,sep='')
path=paste(full_config$subpop_setup$mobility,'/',value,sep='')
if (!file.exists(path)) {
print(paste("The mentioned mobility file :", value, "could not be found."))
return(FALSE)
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
5 changes: 2 additions & 3 deletions flepimop/gempyor_pkg/tests/interface/data/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ name: minimal for interface
setup_name: minimal4interface
start_date: 2020-01-31
end_date: 2020-05-31
data_path: data
nslots: 1


spatial_setup:
geodata: geodata.csv
mobility: mobility.csv
geodata: data/geodata.csv
mobility: data/mobility.csv
popnodes_key: population
subpop_names_key: subpop

Expand Down
5 changes: 2 additions & 3 deletions flepimop/gempyor_pkg/tests/interface/data/config_min_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ name: minimal for interface
setup_name: minimal4interface
start_date: 2020-01-31
end_date: 2020-05-31
data_path: data
nslots: 1


spatial_setup:
geodata: geodata.csv
mobility: mobility.csv
geodata: data/geodata.csv
mobility: data/mobility.csv
popnodes: population
nodenames: geoid

Expand Down
5 changes: 2 additions & 3 deletions flepimop/gempyor_pkg/tests/interface/data/config_minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ name: minimal
setup_name: minimal
start_date: 2020-01-31
end_date: 2020-05-31
data_path: data
nslots: 15


spatial_setup:
geodata: geodata.csv
mobility: mobility.txt
geodata: data/geodata.csv
mobility: data/mobility.txt
popnodes: population
nodenames: geoid

Expand Down
5 changes: 2 additions & 3 deletions flepimop/gempyor_pkg/tests/interface/data/config_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ name: minimal_test
setup_name: minimal_test_setup
start_date: 2020-01-31
end_date: 2020-05-31
data_path: data
nslots: 5


subpop_setup:
geodata: geodata.csv
mobility: mobility.csv
geodata: data/geodata.csv
mobility: data/mobility.csv


seeding:
Expand Down
5 changes: 2 additions & 3 deletions flepimop/gempyor_pkg/tests/npi/config_npi.yml
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 All @@ -14,8 +13,8 @@ compartments:
age_strata: ["age0to17", "age18to64", "age65to100"]

subpop_setup:
geodata: geodata_2019_statelevel.csv
mobility: mobility_2011-2015_statelevel.csv
geodata: data/geodata_2019_statelevel.csv
mobility: data/mobility_2011-2015_statelevel.csv


seeding:
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 All @@ -14,8 +13,8 @@ compartments:
age_strata: ["age0to17", "age18to64", "age65to100"]

subpop_setup:
geodata: geodata_2019_statelevel.csv
mobility: mobility_2011-2015_statelevel.csv
geodata: data/geodata_2019_statelevel.csv
mobility: data/mobility_2011-2015_statelevel.csv
include_in_report: include_in_report
state_level: TRUE

Expand Down
5 changes: 2 additions & 3 deletions flepimop/gempyor_pkg/tests/npi/data/config_minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ name: minimal
setup_name: minimal
start_date: 2020-01-31
end_date: 2020-05-31
data_path: data
nslots: 15


spatial_setup:
geodata: geodata.csv
mobility: mobility.txt
geodata: data/geodata.csv
mobility: data/mobility.txt
popnodes: population
nodenames: geoid

Expand Down
5 changes: 2 additions & 3 deletions flepimop/gempyor_pkg/tests/npi/data/config_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ name: minimal_test
setup_name: minimal_test_setup
start_date: 2020-01-31
end_date: 2020-05-31
data_path: data
nslots: 5


subpop_setup:
geodata: geodata.csv
mobility: mobility.csv
geodata: data/geodata.csv
mobility: data/mobility.csv


seeding:
Expand Down
Loading
Loading