Skip to content
Snippets Groups Projects
Commit 6a86a434 authored by xo30xoqa's avatar xo30xoqa
Browse files

Wrote test.sh for development purposes

parent 904eedc1
Branches development
No related tags found
No related merge requests found
...@@ -7,4 +7,4 @@ using Pkg ...@@ -7,4 +7,4 @@ using Pkg
Pkg.activate(".") Pkg.activate(".")
using Persephone using Persephone
simulate() @time simulate()
...@@ -12,7 +12,7 @@ library(terra) ...@@ -12,7 +12,7 @@ library(terra)
autorun = TRUE ## automatically run all analyses? autorun = TRUE ## automatically run all analyses?
datadir = "results" ## "results" by default datadir = "test_results" ## "results" by default
popfile = "populations.csv" popfile = "populations.csv"
indfile = "individuals.csv" indfile = "individuals.csv"
mapfile = "landcover_jena.tif" mapfile = "landcover_jena.tif"
...@@ -26,7 +26,7 @@ populationTrends = function() { ...@@ -26,7 +26,7 @@ populationTrends = function() {
mutate(Date = as.POSIXct(strptime(Date,format="%Y-%m-%d"))) mutate(Date = as.POSIXct(strptime(Date,format="%Y-%m-%d")))
ggplot(data=popdata, aes(x=Date, y=Abundance, color=Species)) + ggplot(data=popdata, aes(x=Date, y=Abundance, color=Species)) +
geom_point() + geom_point() +
geom_smooth() + ##geom_smooth() +
scale_color_viridis_d() + scale_color_viridis_d() +
theme_bw() theme_bw()
ggsave(paste0(datadir, "/", population_output_file, ".pdf"), width=8, height=4) ggsave(paste0(datadir, "/", population_output_file, ".pdf"), width=8, height=4)
......
...@@ -47,5 +47,5 @@ newspecies("Wolpertinger", ...@@ -47,5 +47,5 @@ newspecies("Wolpertinger",
updatewolpertinger!, updatewolpertinger!,
Dict("popdensity"=>1/10000, Dict("popdensity"=>1/10000,
"birthenergy"=>400, "birthenergy"=>400,
"fecundity"=>0.02, "fecundity"=>0.01,
"maxspeed"=>5)) "maxspeed"=>5))
...@@ -15,7 +15,7 @@ loglevel = "debug" # verbosity level: "debug", "info", "quiet" ...@@ -15,7 +15,7 @@ loglevel = "debug" # verbosity level: "debug", "info", "quiet"
seed = 0 # seed value for the RNG (0 -> random value) seed = 0 # seed value for the RNG (0 -> random value)
# dates to start and end the simulation # dates to start and end the simulation
startdate = 2020-01-01 startdate = 2020-01-01
enddate = 2020-01-31 enddate = 2020-12-31
[farm] [farm]
......
test.sh 0 → 100755
#!/bin/bash
## A short shell script to test the current development version of Persephone.
if [[ -d "test_results" ]]
then
rm -r test_results
fi
./run.jl -o test_results -s 1
src/analysis/analyse_nature.R
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment