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

Remove unnecessary warning for empty magpie runs #583

Merged
merged 2 commits into from
Aug 16, 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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### fixed
- **scripts** fixed output/extra/disaggregation_LUH2.R. The script was not working any more because magpie4::protectedArea was changed to return protected area for all land types. Moreover, the script now also works for runs without dynamic forestry (default run) but with a warning message.

- **scripts** check_config does not warn about c_input_gdx_path anymore while running empty model

## [4.6.9] - 2023-07-27

Expand Down
2 changes: 1 addition & 1 deletion scripts/start_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ start_run <- function(cfg, scenario = NULL, codeCheck = TRUE, lock_model = TRUE)

# Apply scenario settings ans check configuration file for consistency
if(!is.null(scenario)) cfg <- gms::setScenario(cfg,scenario)
cfg <- gms::check_config(cfg, extras = c("info", "repositories"), saveCheck = TRUE)
cfg <- gms::check_config(cfg, extras = c("info", "repositories", "gms$c_input_gdx_path"), saveCheck = TRUE)

# save model version
cfg$info$version <- citation::read_cff("CITATION.cff")$version
Expand Down