Open FabianHofmann opened 4 years ago
This is the current bounding box for all grid cells (default config) and the offshore area, it seems not right that some of the offshore area remains uncovered. However I still have to figure out how the maximal distance of wind turbines plays out here.
After a small discussion with @euronion we agreed that it would be better to double check such configuration manners in a dedicated file.
Such would be named check_config.py
and would contain basic assertions for consistency and validation. Atm for such a case as above where you to double check a ressource, it would probably contain function which you called here.
Could be called in Snakefile
after
https://github.com/PyPSA/pypsa-eur/blob/4d0a86024646f3a468c4fcb6c40dc435b8ab11f5/Snakefile#L11-L12
configfile: "config.yaml"
assert check_config(config), "Configfile not correct."
With function definition either directly in Snakefile
or imported from separate file (like scripts/_helpers.py
).
In the PR we came across options in config.yaml
which became deprecated.
It would be a nice addition to have the check_config(...)
also warn about options in the config file which are deprecated (or soon will) and are thus without effect.
After tackling some issues with the spatial and temporal cutout bounds, it seemed sensible to add a dedicated script which reviews the config and basic ressources created during the work flow.
To start with: we should add an assertion for the following for