Skip to content

Commit

Permalink
Merge pull request remindmodel#1554 from orichters/fixmain
Browse files Browse the repository at this point in the history
fix cm_implicitPriceTarget regexp matching
  • Loading branch information
orichters authored Feb 16, 2024
2 parents 52b679a + 5e2d113 commit fff0e19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main.gms
Original file line number Diff line number Diff line change
Expand Up @@ -1287,8 +1287,8 @@ $setGlobal cm_loadFromGDX_implicitQttyTargetTax off !! def = off !! regexp =
*** option 3 should only be used if the target is defined for a region that has its carbon pricing controlled by cm_emiMktTarget in the 47_regipol module.
$setGlobal cm_implicitQttyTarget_delay iteration 3 !! def = iteration 3, quantity targets only start after iteration 3
*** cm_implicitPriceTarget "define tax/subsidies to match FE prices defined in the pm_implicitPriceTarget parameter."
*** Acceptable values: "off", "Initial", "HighElectricityPrice", "HighGasandLiquidsPrice", "HighPrice", "LowPrice", "LowElectricityPrice"
$setGlobal cm_implicitPriceTarget off !! def = off !! regexp = off|Initial|HighElectricityPrice|HighGasandLiquidsPrice|HighPrice|LowPrice|LowElectricityPrice"
*** Acceptable values: "off", "initial", "elecPrice", "H2Price", "highElec", "highGasandLiq", "highPrice", "lowElec", "lowPrice"
$setGlobal cm_implicitPriceTarget off !! def = off !! regexp = off|initial|elecPrice|H2Price|highElec|highGasandLiq|highPrice|lowElec|lowPrice
*** cm_implicitPePriceTarget "define tax/subsidies to match PE prices defined in the pm_implicitPePriceTarget parameter."
*** Acceptable values: "off", "highFossilPrice".
$setGlobal cm_implicitPePriceTarget off !! def = off !! regexp = off|highFossilPrice
Expand Down
3 changes: 1 addition & 2 deletions tests/testthat/test_01-start.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ test_that("start.R --test succeeds on all configs", {
file.path("../../config", "*", "scenario_config*.csv")))
}
csvfiles <- normalizePath(grep("scenario_config_coupled", csvfiles, invert = TRUE, value = TRUE))
skipfiles <- c("scenario_config_21_EU11_ECEMF",
"scenario_config_EDGE-T_NDC_NPi_pkbudget",
skipfiles <- c("scenario_config_EDGE-T_NDC_NPi_pkbudget",
"scenario_config_NAVIGATE_300")
csvfiles <- grep(paste(skipfiles, collapse = "|"), csvfiles, invert = TRUE, value = TRUE)
expect_true(length(csvfiles) > 0)
Expand Down

0 comments on commit fff0e19

Please sign in to comment.