Skip to content

Make BADM_IC_process() use PEcAn Settings / MultiSettings consistently #3699

@divine7022

Description

@divine7022

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions