Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkFixUnits should tell which variables are affected and also write that to the logfile #167

Closed
orichters opened this issue Sep 8, 2023 · 0 comments · Fixed by #169
Closed
Assignees

Comments

@orichters
Copy link
Contributor

# 1 unit mismatches between template and reporting.
If they are identical apart from spelling, add them to vector 'identicalUnits' in piamInterfaces::checkFixUnits() as:
                      "million t DM/yr" = "kcal/cap/day",

Error in checkFixUnits(mifdata, template, logFile) : Unit mismatches!

This is not helpful if it does not tell you which variable is affected. And the info could also be entered into the logfile.

https://github.com/pik-piam/piamInterfaces/blob/master/R/checkFixUnits.R#L78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant