Skip to content

refactor(BADM_IC_process): remove Multisettings support per issue #3706#3779

Open
ayushman1210 wants to merge 4 commits intoPecanProject:developfrom
ayushman1210:pr-badm
Open

refactor(BADM_IC_process): remove Multisettings support per issue #3706#3779
ayushman1210 wants to merge 4 commits intoPecanProject:developfrom
ayushman1210:pr-badm

Conversation

@ayushman1210
Copy link
Contributor

Description

Refactored BADM_IC_process() in modules/data.land/R/IC_BADM_Utilities.R to robustly handle both single-site and multi-site settings with proper coordinate validation.

Changes:

  • BADM_IC_process(): Replaced manual normalization with explicit single/multi-site detection
  • added numeric coercion with validation; improved error handling for invalid coordinates.

Motivation

Code review feedback: improve clarity and robustness of initial condition processing. Original manual handling was prone to coordinate type issues in multi-site workflows.

Types of changes

  • Bug fix

Fixes

#3699

…anProject#3706

- BADM_IC_process now only accepts single Settings objects, not Multisettings
- Validates input has 'run' element; throws clear error if Multisettings attempted
- Multi-site processing should be handled by higher-level wrapper functions
- Updated tests: removed multi-site test, added test for Multisettings rejection
- Uses consistent terminology: 'Settings' instead of 'Settings-like list'
- Aligns with design decision from issue PecanProject#3706 on ic process function interface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant