Skip to content
Snippets Groups Projects
Unverified Commit 932c8b60 authored by David Klein's avatar David Klein Committed by GitHub
Browse files

MAgPIE coupling: change separator for magpie scenarios

change it from "," to "|" to avoid editors to split magpie scenarios into columns (if editor uses comma separation)
parent b5fa0cb1
No related branches found
No related tags found
1 merge request!303Magpie coupling: Change the letter used to split the list of MAgPIE scenarios into individual scenarios from "," to "|" to avoid accidental splitting by text editors that use the comma as a column separator.
......@@ -178,7 +178,7 @@ for(scen in common){
rm(cfg)
# configure MAgPIE according to magpie_scen (scenario needs to be available in scenario_config.cfg)
if(!is.null(scenarios_coupled[scen, "magpie_scen"])) cfg_mag <- setScenario(cfg_mag,c(trimws(unlist(strsplit(scenarios_coupled[scen, "magpie_scen"],split=","))),"coupling"),scenario_config=paste0(path_magpie,"config/scenario_config.csv"))
if(!is.null(scenarios_coupled[scen, "magpie_scen"])) cfg_mag <- setScenario(cfg_mag,c(trimws(unlist(strsplit(scenarios_coupled[scen, "magpie_scen"],split="|"))),"coupling"),scenario_config=paste0(path_magpie,"config/scenario_config.csv"))
cfg_mag <- check_config(cfg_mag, reference_file=paste0(path_magpie,"config/default.cfg"),modulepath = paste0(path_magpie,"modules/"))
# How to provide the exogenous TC to MAgPIE:
......
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