The UFZ services GitLab and Mattermost will be unavailable on Monday, July 4 from 06:00 AM to 08:00 AM due to maintenance work.

Commit 26ed34de authored by Adam Reichold's avatar Adam Reichold
Browse files

Add flag to sampling effects experiment to load landscape file from canonical path.

parent 8e8152c0
Pipeline #82262 passed with stage
in 3 minutes and 20 seconds
......@@ -61,6 +61,7 @@ eve-build:
- target/release/prevalence
- target/release/contacts
- target/release/vectors
- target/release/observations
- target/release/bipartite
document:
......
......@@ -20,6 +20,7 @@ fn main() {
let mut no_handling_at_all = false;
let mut sit_instead_of_walk = false;
let mut number_of_spots = 0;
let mut use_landscape = false;
let mut args = args().skip(1);
......@@ -36,6 +37,7 @@ fn main() {
number_of_spots = args.next().unwrap().parse().unwrap();
}
"use_landscape" => use_landscape = true,
seed => params.init.seed = seed.parse().unwrap(),
}
}
......@@ -98,5 +100,9 @@ fn main() {
params.transect.strategy = ObserverStrategy::Sit(number_of_spots);
}
if use_landscape {
params.init.landscape = Some("../landscape.map".into());
}
sample(params, Tick::months(2), Tick::days(1));
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment