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

si_code issue in metrics tidyfier #20

Open
vflo opened this issue May 5, 2022 · 0 comments
Open

si_code issue in metrics tidyfier #20

vflo opened this issue May 5, 2022 · 0 comments

Comments

@vflo
Copy link

vflo commented May 5, 2022

A potential issue in metrics_tidyfier due to lack of match between si_code and pl_code. The function returns si_code = NA.

raw_index <- stringr::str_detect(names(sapf_data[["sapf"]])[2], raw_codes)

This issue was found in "COL_MAC_SAF_RAD" because the codes of plants are incomplete (e.g. "COL_MAC_SAF_Tca_Js_1").

The problem is not easily solved directly from this function. A possible solution would be to make sfn_metrics also return the site metadata (or at least si_code) in another element of the output list, and then in metrics_tidyfier extract si_code directly from the metrics_res input variable.

However, this is a database quality control problem rather than an unforeseen use case problem. I would not make any changes for the moment.

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

No branches or pull requests

1 participant