-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
added summation check #649
Conversation
|
||
## Check outputdir | ||
if(!exists("source_include")) { | ||
outputdir <-"." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
outputdir <-"." | |
outputdir <- "." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Short comment:
Now, checkSummations()
returns all summations, even those that are fine. But, I think that is stupid.
I will update the checkSummations
function that already has a absDiff
and relDiff
parameter to return only the failing summation checks that are >= absDiff and >= relDiff.
For your case, I think it is advisable to select good thresholds (maybe absDiff = 0.001 as your mif has 4 digits and you want to avoid to be warned of rounding errors), or use absDiff = 0, relDiff = 0 if you really want everything.
And, potentially, you might make the writing of the file conditional on nrow(failvars) > 0
. In REMIND, we execute this summation check automatically after every run, and even have a sumErr
message in the mif
column of the modeltests output to become informed, if that summation error file exists. That might be very easy for you to get as well.
applied all requested changes and in addition added an abstract to citation.cff (required for PRISMA) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good to me
馃惁 Description of this PR 馃惁
added checkSummation output script for consistency checking of report.mif files.
馃敡 Checklist for PR creator 馃敡
Label pull request from the label list.
Self-review own code
magpie4
R library has been updated accordingly and backwards compatible where necessary.scenario_config.csv
has been updated accordingly (important ifdefault.cfg
has been updated)Document changes
CHANGELOG.md
goxygen::goxygen()
and verify the modified code is properly documentedPerform test runs
Rscript start.R --> "compilation check"
Rscript start.R --> "test runs"
Rscript start.R --> "test runs"
馃搲 Performance changes 馃搱
馃毃 Checklist for reviewer 馃毃
CHANGELOG
is updated correctly