Skip to content

Commit

Permalink
fixed bug which could cause compilation errors if the title contains …
Browse files Browse the repository at this point in the history
…a dot
  • Loading branch information
tscheypidi committed Jan 18, 2023
1 parent b60fdff commit 3d72dfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-

### fixed
-
- **scripts** make sure that `c_title` in the GAMS code is not containing dots which otherwise could lead to compilation errors


## [4.6.2] - 2023-01-12
Expand Down
2 changes: 1 addition & 1 deletion scripts/start_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ start_run <- function(cfg, scenario = NULL, codeCheck = TRUE, lock_model = TRUE)
cfg$info$version <- citation::read_cff("CITATION.cff")$version

# Make 'title' a setglobal in gams to include it in the gdx
cfg$gms$c_title <- cfg$title
cfg$gms$c_title <- sub(".", "p", cfg$title, fixed = TRUE)

rundate <- Sys.time()
date <- format(rundate, "_%Y-%m-%d_%H.%M.%S")
Expand Down

0 comments on commit 3d72dfb

Please sign in to comment.