Skip to content
Snippets Groups Projects
Commit 1c7275ad authored by Johannes Koch's avatar Johannes Koch
Browse files

:bug: Fix bug in function configure_cfg

A bad regex pattern was being used to remove files ending with ".gdx".
parent 06f8d381
No related branches found
No related tags found
1 merge request!205:bug: Fix bug in function configure_cfg
......@@ -161,8 +161,8 @@ configure_cfg <- function(icfg, iscen, iscenarios, isettings) {
input_ref.gdx = isettings[iscen, "path_gdx_ref"],
input_bau.gdx = isettings[iscen, "path_gdx_bau"])
# Remove potential elements that contain ".gdx" and append gdxlist
icfg$files2export$start <- .setgdxcopy(".gdx", icfg$files2export$start, gdxlist)
# Remove potential elements that end with ".gdx" and append gdxlist
icfg$files2export$start <- .setgdxcopy("\\.gdx$", icfg$files2export$start, gdxlist)
# add gdx information for subsequent runs
icfg$subsequentruns <- rownames(isettings[isettings$path_gdx_ref == iscen & !is.na(isettings$path_gdx_ref) & isettings$start == 1,])
......
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