Skip to content

Commit

Permalink
relax summation check strictness
Browse files Browse the repository at this point in the history
  • Loading branch information
orichters committed Jun 27, 2024
1 parent a69833a commit 8e5d2ff
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions R/convGDX2MIF.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,18 +151,16 @@ convGDX2MIF <- function(gdx, gdx_ref = NULL, file = NULL, scenario = "default",
sumChecks <- checkSummations(
mifFile = output, dataDumpFile = NULL, outputDirectory = NULL,
summationsFile = "extractVariableGroups",
absDiff = 1.5e-8, relDiff = 1e-8, roundDiff = TRUE
) %>%
filter(abs(.data$diff) >= 1.5e-8),
absDiff = 0.01, relDiff = 0.02, roundDiff = TRUE
),
type = 'message') %>%
.reportSummationErrors(testthat = testthat)

capture.output(sumChecks <- checkSummations(
mifFile = output, dataDumpFile = NULL, outputDirectory = NULL,
summationsFile = system.file('extdata/additional_summation_checks.csv',
package = 'remind2'),
absDiff = 1.5e-8, relDiff = 1e-8, roundDiff = TRUE) %>%
filter(abs(.data$diff) >= 1.5e-8) %>%
absDiff = 0.01, relDiff = 0.02, roundDiff = TRUE) %>%
bind_rows(sumChecks),
type = 'message'
) %>%
Expand Down

0 comments on commit 8e5d2ff

Please sign in to comment.