calliope-project / calliope

A multi-scale energy systems modelling framework

Home Page:https://www.callio.pe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Restructuring maths yaml files

FraSanvit opened this issue · comments

Problem description

Restructure the .yaml files such that there is a base.yaml file including the default variables, constraints, .. etc. Alongside this, specific run-mode .yaml files are provided (e.g. plan, operate, spores...). Plan mode can be the default so included in the base.yaml resulting in an empty plan.yaml file.

In this way, we can remove all the references to "run.mode=operate" in the where strings.

[Possible issue]: such files are specified when loading the configs, so it might be the case that once the model has been loaded, other custom math are not available anymore. E.g. Running a model in plan mode, saving it, loading it and then wanting to run it in operate mode.

Calliope version

v0.7.0-dev

Fixed in #439. Possible issue is dealt with since the run-mode custom math is applied only when building the optimisation problem