Allowed/Not allowed characters in model configuration .yaml files
FraSanvit opened this issue · comments
Problem description
By chance, I tried to run an old model I used to run with Calliope v0.6.8.
The following model error came up:
ModelError: Some data not extracted from inputs into model dataset
Apparently, the error is triggered by using special characters (in this case I used the &
symbol) for naming technologies in yaml
files.
Substituting the ampersand with and
solves the problem.
The question is whether special characters should be allowed or not.
Steps to reproduce the problem
Introduce a technology name as follows:
oil_&_other:
essentials:
name: 'Other fossil fuels plant'
parent: supply
carrier_out: electricity
constraints:
resource: inf
energy_eff: 0.35
energy_ramping: 0.6
lifetime: 35
Calliope version
v0.7.0 vs v0.6.8
This relates to having a YAML schema against which we validate model config files (#230). We would catch something like this if we did.
As of v0.7, we now have a YAML schema that will manage this.