Skip to content
Snippets Groups Projects
Commit bdd4298a authored by Marianna Rottoli's avatar Marianna Rottoli
Browse files

Bugfix: calibration file name has edge transport description only if edge_esm is called.

parent 324d7e19
No related branches found
No related tags found
1 merge request!194Updates to EDGE-Transport
...@@ -227,11 +227,15 @@ prepare <- function() { ...@@ -227,11 +227,15 @@ prepare <- function() {
# create_ExogSameAsPrevious_CO2price_file(as.character(cfg$files2export$start["input_ref.gdx"])) # create_ExogSameAsPrevious_CO2price_file(as.character(cfg$files2export$start["input_ref.gdx"]))
#} #}
# select demand pathway for transportation: options are conv (conventional demand pathway) and wise (wiseways, limited demand) # select demand pathway for transportation when using the EDGE-T model: options are conv (conventional demand pathway) and wise (wiseways, limited demand)
if(grepl("Wise", cfg$gms$cm_EDGEtr_scen)){ if(transport == "edge_esm"){
demTrsp = "wise"
} else { if(grepl("Wise", cfg$gms$cm_EDGEtr_scen)){
demTrsp = "conv" demTrsp = "wise"
} else {
demTrsp = "conv"
}
} }
# Calculate CES configuration string # Calculate CES configuration string
...@@ -242,7 +246,7 @@ prepare <- function() { ...@@ -242,7 +246,7 @@ prepare <- function() {
"POP_", cfg$gms$cm_POPscen, "-", "POP_", cfg$gms$cm_POPscen, "-",
"GDP_", cfg$gms$cm_GDPscen, "-", "GDP_", cfg$gms$cm_GDPscen, "-",
"Kap_", cfg$gms$capitalMarket, "-", "Kap_", cfg$gms$capitalMarket, "-",
"demTrsp_", demTrsp, "-", ifelse(transport == "edge_esm", paste0( "demTrsp_", demTrsp, "-"), ""),
"Reg_", substr(regionscode(cfg$regionmapping),1,10)) "Reg_", substr(regionscode(cfg$regionmapping),1,10))
# write name of corresponding CES file to datainput.gms # write name of corresponding CES file to datainput.gms
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment