Refactor sud JSON pot params under a nested 'pot' key

Top-level pot_mass/pot_material/L/Td/grain_mass/water_mass and their
per-step overrides are now grouped under a 'pot' sub-object, matching
the structure already applied to sud_0010.json's parent level. Updated
all sude/*.json files and the parsing/consuming code in components/sud.py,
tasks/sud.py, components/sud_forecast.py, and scripts/demos/sud/demo_sud.py.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T52JH848ojhXXHn1bAzdC3
This commit is contained in:
2026-06-26 07:31:27 +02:00
co-authored by Claude Sonnet 4.6
parent 7dd0400278
commit e2e3baab08
9 changed files with 128 additions and 84 deletions
+2 -1
View File
@@ -156,7 +156,8 @@ class SudForecastEstimator:
# re-assigns self.step to retrigger it) - only the *first* call
# for a given index is its actual start.
step_starts.setdefault(sud.index, t[-1])
params = sud.derive_plant_params(step.get('grain_mass', 0), step.get('water_mass', 0))
pot = step.get('pot', {})
params = sud.derive_plant_params(pot.get('grain_mass', 0), pot.get('water_mass', 0))
pot.set_plant_params(params)
tc.set_model_plant_params(params)
if sud.state == SudState.RAMPING and step['temperature'] is not None: