Skip to content

Commit

Permalink
addapt test and debug
Browse files Browse the repository at this point in the history
  • Loading branch information
TitouanRobert committed Apr 30, 2021
1 parent 5ddfa6e commit 6395511
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions inst/studyV8/Ponderation_light/settings/generaldata.ini
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,6 @@ seed-spilled-energy-costs = 7005489
seed-thermal-costs = 8005489
seed-hydro-costs = 9005489
seed-initial-reservoir-levels = 10005489
playlist_year_weight = 0,0.100000
playlist_year_weight = 1,0.200000
playlist_year_weight = 2,0.300000
playlist_year_weight = 3,0.400000
playlist_year_weight = 4,0.500000
playlist_year_weight = 5,0.600000
playlist_year_weight = 6,0.700000
playlist_year_weight = 7,0.800000
playlist_year_weight = 8,0.900000
playlist_year_weight = 9,1.000000
[playlist]
playlist_reset = false
playlist_year + = 0
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-playlist.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ test_that("playlist V8", {
testthat::expect_true(all(playlist == 1:10))

setPlaylist(playlist = c(1:8))
testthat::expect_true(all(getPlaylist()$activate_mc == 1:8))
testthat::expect_true(all(getPlaylist() == 1:8))

weights_clean <- data.table(mcYears = c(1:8), weights = c(seq(from = 0.1, to = 0.7, length.out = 7), 14))
setPlaylist(playlist = c(1:8), weights = weights_clean)
Expand Down

0 comments on commit 6395511

Please sign in to comment.