Skip to content

Commit

Permalink
relax fixOnRef precision to avoid 'errors' such as 0.0000139 % deviation
Browse files Browse the repository at this point in the history
  • Loading branch information
orichters committed Jul 5, 2024
1 parent eb183ac commit 2a61d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/output/single/fixOnRef.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fixOnMif <- function(outputdir) {
dref <- quitte::as.quitte(refmif)
d <- fixMAGICC(d, dref, startyear, title)
failfile <- file.path(outputdir, "log_fixOnRef.csv")
fixeddata <- piamInterfaces::fixOnRef(d, dref, ret = "TRUE_or_fixed", startyear = startyear, failfile = failfile)
fixeddata <- piamInterfaces::fixOnRef(d, dref, ret = "TRUE_or_fixed", startyear = startyear, failfile = failfile, relDiff = 0.00002)

update <- paste0("MAGICC data. ", if (! isTRUE(fixeddata)) "Run output.R -> single -> fixOnRef to fix the rest.")
if (! isTRUE(fixeddata) && isTRUE(envi$cfg$fixOnRefAuto)) {
Expand Down

0 comments on commit 2a61d3b

Please sign in to comment.