PEPRMT: new parameters, met integration#3938
Open
abbylewis wants to merge 26 commits into
Open
Conversation
infotroph
approved these changes
May 19, 2026
Member
There was a problem hiding this comment.
Thanks for doing this and for your patience with the wait for reviews.
- Code: Looks great! I left one optional suggestion about a line that confused me but appears to work as intended anyway.
- Demos: Ran both with no problem ✅
- Files: Is it necessary to include all three of
raw-data/site-data-raw,raw-data/site-data-formatted, anddata/PEPRMT_specific_inputs? They're small enough it's OK to commit them all if needed, but big enough to be worth being sure.
Comment on lines
+28
to
+31
| if(nchar(in.prefix)>0 & | ||
| !substr(in.prefix, nchar(in.prefix), nchar(in.prefix)) %in% c(".", "_")) { | ||
| in.prefix = paste0(in.prefix,".") | ||
| } |
Member
There was a problem hiding this comment.
Am I reading right that this is testing whether in.prefix already ends in . or _?
Would this be more readable?
Suggested change
| if(nchar(in.prefix)>0 & | |
| !substr(in.prefix, nchar(in.prefix), nchar(in.prefix)) %in% c(".", "_")) { | |
| in.prefix = paste0(in.prefix,".") | |
| } | |
| if (nchar(in.prefix) > 0 && !any(endsWith(in.prefix, c(".", "_")))) { | |
| in.prefix <- paste0(in.prefix, ".") | |
| } |
infotroph
requested changes
May 20, 2026
Member
infotroph
left a comment
There was a problem hiding this comment.
A couple more to quiet the CI messages. You'll also need to remove PEPRMT from the Imports: section of DESCRIPTION since it's no longer called anywhere R's package checks can see it. I suggest moving it to a new Enhances: line.
|
|
||
| peprmt_specific_input_path <- settings$run$inputs$PEPRMT$path | ||
|
|
||
| run_data <- read.csv(peprmt_specific_input_path) |> |
Member
There was a problem hiding this comment.
Suggested change
| run_data <- read.csv(peprmt_specific_input_path) |> | |
| run_data <- utils::read.csv(peprmt_specific_input_path) |> |
| peprmt_specific_input_path <- settings$run$inputs$PEPRMT$path | ||
|
|
||
| run_data <- read.csv(peprmt_specific_input_path) |> | ||
| dplyr::select(-any_of(met_vars)) |> |
Member
There was a problem hiding this comment.
Suggested change
| dplyr::select(-any_of(met_vars)) |> | |
| dplyr::select(-dplyr::any_of(met_vars)) |> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fairly substantial changes to PEcAn.PEPRMT to incorporate meteorological inputs, update parameter specification, and transition away from using example data:
@infotroph
Review Time Estimate
Types of changes
Checklist: