Skip to content

Commit

Permalink
adjust tests to SSP2EU -> SSP2 rename
Browse files Browse the repository at this point in the history
  • Loading branch information
orichters committed Jun 21, 2024
1 parent 2a5924e commit ecb16cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/loadModeltest.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ cs2InputPaths <- function(outputDirs) {
#' ssp1 <- new.env()
#' ssp2eu <- new.env()
#' loadModeltest(ssp1, "^SSP1-AMT-")
#' loadModeltest(ssp2eu, "^SSP2EU-.*-AMT$")
#' loadModeltest(ssp2eu, "^SSP2-.*-AMT$")
#' ssp1$data
#' ssp2eu$data
#' }
#' @export
loadModeltest <- function(
envir = globalenv(),
namePattern = "^SSP2EU-.*-AMT$",
namePattern = "^SSP2-.*-AMT$",
folder = tempdir()
) {

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-convGDX2mif.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ library(gdx)
test_that("Test if REMIND reporting is produced as it should and check data integrity", {
skip_if_not(as.logical(gdxrrw::igdx(silent = TRUE)), "gdxrrw is not initialized properly")

# GDXs for comparison. Once the remind2::reportEmi does not report negative gross emissions we will switch to SSP2EU-EU21-PkBudg and SSP2EU-NPi
# GDXs for comparison. Once the remind2::reportEmi does not report negative gross emissions we will switch to SSP2-EU21-PkBudg and SSP2-NPi
gdxList <- c("fulldata-release.gdx" = "https://rse.pik-potsdam.de/data/example/remind2_test-convGDX2MIF_SSP2EU-EU21-NPi_2024-03-28_10.23.13.gdx",
"fulldata-AMT.gdx" = "https://rse.pik-potsdam.de/data/example/remind2_test-convGDX2MIF_SSP2EU-PkBudg650-AMT.gdx")
"fulldata-AMT.gdx" = "https://rse.pik-potsdam.de/data/example/remind2_test-convGDX2MIF_SSP2-PkBudg650-AMT.gdx")

gdxPaths <- NULL
for (i in seq_along(gdxList)) {
Expand Down

0 comments on commit ecb16cb

Please sign in to comment.