Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add info about model version to full.gms #1398

Merged
merged 2 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading