Open irm-codebase opened 2 months ago
Maybe we can build it in a way that the config param is a list that can hold 1--3 resolutions? As a user, I often use more than one resolution: one for rapid prototyping (typically continental) and one (or two) for the actual analysis.
Nice idea.
Snakemake's expand
function should do the trick
https://snakemake.readthedocs.io/en/stable/snakefiles/rules.html#the-expand-function
What can be improved?
The problem
Currently, the main
Snakefile
produces files for different model configurations (national, regional, continental).This results in a lot of wasted processing time, and usually leads to files you do not really need.
The solution
Files generated should depend on the used configuration (which should be either continental or minimal by default). Here,
config["setup"]["resolution"] = "continental"
.Version
1.0.0