-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSnakefile
More file actions
30 lines (23 loc) · 795 Bytes
/
Snakefile
File metadata and controls
30 lines (23 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This file is a simple example of a Snakefile for invoking Virtual Ecosystem. It will
# run multiple simulations using the specified parameter grid and put the results in a
# folder called "out". For more information, consult README.md.
from pathlib import Path
from virtual_ecosystem import example_data_path
from snakemake_helper import VEExperiment
# NB: You should replace this with the path to your config(s)
CONFIG_PATH = Path(example_data_path) / "config"
# The parameter grid to be used for the simulation
PARAMS = {
"hydrology": {"initial_soil_moisture": (0.4, 0.5)},
}
exp = VEExperiment("out", PARAMS)
rule all:
input:
exp.all_outputs,
rule ve:
input:
CONFIG_PATH,
output:
directory(exp.output),
run:
exp.run(input, output)