Description
BADM_IC_process() in modules/data.land/R/IC_BADM_Utilities.R currently implements its own ad‑hoc logic to distinguish single‑site vs multi‑site runs by checking for a top‑level "run" element and then wrapping settings in list(settings)
Proposed Refactor
- Use
PEcAn.settings::papply() instead of manual normalization
papply() internally handles is.Settings() / is.MultiSettings() type checking
- Update tests to ensure this consistent behavior across single-site and multi-site configurations.