Skip to content

Commit

Permalink
add (out-commented) placeholder for params_siml check in run_biomee_f…
Browse files Browse the repository at this point in the history
…_bysite()
  • Loading branch information
fabern committed Dec 12, 2024
1 parent c80276c commit edad590
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions R/run_biomee_f_bysite.R
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,32 @@ run_biomee_f_bysite <- function(
if (suppressWarnings(!all(as.vector(data_integrity)))) {
continue <- FALSE
}

# simulation parameters to check
# check_param <- c(
# "spinup",
# "spinupyears",
# "recycle",
# "firstyeartrend",
# "nyeartrend",
# "steps_per_day",
# "do_U_shaped_mortality",
# "update_annualLAImax",
# "do_closedN_run"
# )
# parameter_integrity <- lapply(check_param, function(check_var){
# if (any(is.nanull(params_siml[check_var]))){
# warning(sprintf("Error: Missing value in %s for %s",
# check_var, sitename))
# return(FALSE)
# } else {
# return(TRUE)
# }
# })

# if (suppressWarnings(!all(parameter_integrity))){
# continue <- FALSE
# }
}

if (continue) {
Expand Down

0 comments on commit edad590

Please sign in to comment.