From 325ab50979a4f1371cdee6f4effb0e5855201faa Mon Sep 17 00:00:00 2001 From: Bryn Pickering <17178478+brynpickering@users.noreply.github.com> Date: Tue, 19 Nov 2024 19:51:11 +0000 Subject: [PATCH] Add `broadcast_param_data` config option and default it to False. --- CHANGELOG.md | 3 + docs/creating/config.md | 4 ++ docs/creating/parameters.md | 26 +++++++++ docs/examples/national_scale/index.md | 55 +++++++++++++------ docs/examples/urban_scale/index.md | 23 ++------ docs/user_defined_math/syntax.md | 2 +- src/calliope/config/config_schema.yaml | 7 +++ .../national_scale/data_tables/costs.csv | 6 ++ .../example_models/national_scale/model.yaml | 16 +++++- .../national_scale/model_config/techs.yaml | 51 +---------------- .../example_models/urban_scale/model.yaml | 5 ++ .../urban_scale/model_config/techs.yaml | 14 ----- src/calliope/preprocess/model_data.py | 7 +++ tests/common/test_model/model.yaml | 2 + tests/test_preprocess_model_data.py | 13 +++++ 15 files changed, 132 insertions(+), 102 deletions(-) create mode 100644 src/calliope/example_models/national_scale/data_tables/costs.csv diff --git a/CHANGELOG.md b/CHANGELOG.md index e6b1c295..b58be7ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ### User-facing changes +|changed| Single data entries defined in YAML indexed parameters will not be automatically broadcast along indexed dimensions. +To achieve the same functionality as in `