Skip to content

Commit

Permalink
update pointer for testing two-region import factors
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Aug 1, 2024
1 parent 2083c70 commit 89fd49e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/modelspecs/GAEEIOv1.0-s-GHG-19.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ DemandVectors:
DefaultDemand: "DefaultDemandVectors" # Name of default demand vectors yml file

# ImportFactors:
# StaticFile: "import_factors_summary_2019.csv"
# FileLocation: "useeior"
# StaticFile: "useeior/US_summary_import_factors_exio_2019_17sch.csv"
# FileLocation: "DataCommons"
5 changes: 3 additions & 2 deletions tests/test_model_build.R
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,14 @@ writeModeltoXLSX(model, ".")

## StateEEIOv1.0 Two-region Summary model with Import Factors
cfg <- c(paste0("modelspecs/", m, ".yml"),
"import_factors_summary_2019.csv"
"US_summary_import_factors_exio_2019_17sch.csv"
)
model <- useeior:::initializeModel(m, configpaths = file.path(cfg))
model$specs$Model <- "GAEEIOv1.0-s-GHG-19-IF"
model$specs$ExternalImportFactors <- TRUE
model$specs$ImportFactors <- list()
model$specs$ImportFactors$StaticFile <- "import_factors_summary_2019.csv"
model$specs$ImportFactors$StaticFile <- "useeior/US_summary_import_factors_exio_2019_17sch.csv"
model$specs$ImportFactors$FileLocation <- "DataCommons"
model <- useeior:::loadIOData(model, file.path(cfg))
model <- useeior:::loadandbuildSatelliteTables(model)
model <- useeior:::loadandbuildIndicators(model)
Expand Down

0 comments on commit 89fd49e

Please sign in to comment.