Skip to content

Commit

Permalink
remove debugging flag
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobBD committed Jan 18, 2024
1 parent e83aa6e commit 588ac26
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ Suggests:
VignetteBuilder:
knitr
Encoding: UTF-8
RoxygenNote: 7.2.3
RoxygenNote: 7.3.0
Config/testthat/parallel: true
Config/testthat/edition: 3
7 changes: 1 addition & 6 deletions R/convGDX2MIF.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ convGDX2MIF <- function(gdx, gdx_ref = NULL, file = NULL, scenario = "default",

# make the reporting
output <- NULL
# onlyReportFE <- TRUE
onlyReportFE <- FALSE

if (! onlyReportFE) {
message("running reportMacroEconomy...")
output <- mbind(output,reportMacroEconomy(gdx,regionSubsetList,t)[,t,])
message("running reportTrade...")
Expand All @@ -52,10 +49,8 @@ convGDX2MIF <- function(gdx, gdx_ref = NULL, file = NULL, scenario = "default",
output <- mbind(output,reportPE(gdx,regionSubsetList,t)[,t,])
message("running reportSE...")
output <- mbind(output,reportSE(gdx,regionSubsetList,t)[,t,])
}
message("running reportFE...")
output <- mbind(output,reportFE(gdx,regionSubsetList,t))
if (! onlyReportFE) {
message("running reportExtraction...")
output <- mbind(output,reportExtraction(gdx,regionSubsetList,t)[,t,])
message("running reportCapacity...")
Expand Down Expand Up @@ -118,7 +113,7 @@ convGDX2MIF <- function(gdx, gdx_ref = NULL, file = NULL, scenario = "default",
} else {
message("function reportSDPVariables does not work and is skipped")
}
}

# Add dimension names "scenario.model.variable"
getSets(output)[3] <- "variable"
output <- add_dimension(output,dim=3.1,add = "model",nm = "REMIND")
Expand Down
44 changes: 44 additions & 0 deletions man/remind2-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 588ac26

Please sign in to comment.