Skip to content

Commit

Permalink
Merge pull request #1398 from LaviniaBaumstark/develop
Browse files Browse the repository at this point in the history
add info about model version to full.gms
  • Loading branch information
LaviniaBaumstark committed Sep 6, 2023
2 parents d37cee2 + 488adc3 commit e82cb11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 1 addition & 5 deletions main.gms
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,7 @@

*##################### R SECTION START (VERSION INFO) ##########################
*
* Regionscode: 62eff8f7
*
* Input data revision: 6.316
*
* Last modification (input data): Wed Sep 28 10:35:42 2022
* will be updated automatically when starting a REMIND run
*
*###################### R SECTION END (VERSION INFO) ###########################

Expand Down
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 e82cb11

Please sign in to comment.