From 72052a2e1591b0eb8ae006084db76dfd7a024f74 Mon Sep 17 00:00:00 2001 From: Stefano Simonelli <16114781+s-simoncelli@users.noreply.github.com> Date: Tue, 16 Dec 2025 07:35:07 +0000 Subject: [PATCH] Add timestepper and recorders key in empty model dictionary --- pywr_editor/model/model_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pywr_editor/model/model_config.py b/pywr_editor/model/model_config.py index fc8ea0d..b10c28b 100644 --- a/pywr_editor/model/model_config.py +++ b/pywr_editor/model/model_config.py @@ -218,11 +218,12 @@ def empty_model() -> dict: "description": f"Model created on {current_time}", }, "includes": [], - "timestepper": {}, + "timestepper": {"start": "2000-1-1", "end": "2000-12-31", "timestep": 1}, "scenarios": [], "nodes": [], "edges": [], "tables": {}, + "recorders": {}, Constants.EDITOR_CONFIG_KEY.value: {Constants.SHAPES_KEY.value: []}, }