Skip to content

Commit

Permalink
add info about model version to full.gms file
Browse files Browse the repository at this point in the history
  • Loading branch information
LaviniaBaumstark committed Sep 6, 2023
1 parent d37cee2 commit d43e20c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/start/prepare.R
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,12 @@ prepare <- function() {
manipulateConfig(tmpModelFile, cfg$gms)

######## declare functions for updating information ####
update_info <- function(regionscode, revision) {
update_info <- function(regionscode, revision, model_version) {

subject <- "VERSION INFO"
content <- c("",
paste("Modelversion:", model_version),
"",
paste("Regionscode:", regionscode),
"",
paste("Input data revision:", revision),
Expand Down Expand Up @@ -270,7 +272,7 @@ prepare <- function() {

############ update information ########################
# update_info, which regional resolution and input data revision in tmpModelFile
update_info(madrat::regionscode(cfg$regionmapping), cfg$inputRevision)
update_info(madrat::regionscode(cfg$regionmapping), cfg$inputRevision, cfg$model_version)
# update_sets, which is updating the region-depending sets in core/sets.gms
#-- load new mapping information
map <- read.csv(cfg$regionmapping, sep=";")
Expand Down

0 comments on commit d43e20c

Please sign in to comment.