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

Removed quietmode again, is unnecessary

parent 833d0e8b
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,6 @@ mapfile = "data/region_hohenlohe.tif" # location of the map file ...@@ -10,7 +10,6 @@ mapfile = "data/region_hohenlohe.tif" # location of the map file
outdir = "results" # location and name of the output folder outdir = "results" # location and name of the output folder
logfile = "simulation.log" # name of the log file logfile = "simulation.log" # name of the log file
loglevel = "debug" # verbosity level: "debug", "normal", "errors" loglevel = "debug" # verbosity level: "debug", "normal", "errors"
quietmode = false # if true, only print log statements to file, not the screen
runtime = 5 # duration in days that the simulation will run for runtime = 5 # duration in days that the simulation will run for
seed = 0 # seed value for the RNG (0 -> random value) seed = 0 # seed value for the RNG (0 -> random value)
......
...@@ -74,11 +74,6 @@ function getsettings(configfile::String) ...@@ -74,11 +74,6 @@ function getsettings(configfile::String)
outdir = defaultoutdir*"_"*string(Dates.today())*"_s"*string(settings["core"]["seed"]) outdir = defaultoutdir*"_"*string(Dates.today())*"_s"*string(settings["core"]["seed"])
settings["core"]["outdir"] = outdir settings["core"]["outdir"] = outdir
end end
# Flags are automatically set to false by ArgParse if they are not given -
# this should not override a given config file value
if !commandline["quietmode"] && !isnothing(configs) && "quietmode" in keys(configs["core"]) && configs["core"]["quietmode"]
settings["core"]["quietmode"] = true
end
settings settings
end end
...@@ -109,9 +104,6 @@ function parsecommandline() ...@@ -109,9 +104,6 @@ function parsecommandline()
help = "verbosity: \"debug\", \"normal\", or \"errors\"" help = "verbosity: \"debug\", \"normal\", or \"errors\""
arg_type = String arg_type = String
required = false required = false
"--quietmode", "-q"
help = "don't print output to screen"
action = :store_true
"--runtime", "-r" "--runtime", "-r"
help = "duration in days that the simulation will run" help = "duration in days that the simulation will run"
arg_type = Int arg_type = Int
......
...@@ -12,7 +12,6 @@ mapfile = "data/region_jena.tif" # location of the map file ...@@ -12,7 +12,6 @@ mapfile = "data/region_jena.tif" # location of the map file
outdir = "results" # location and name of the output folder outdir = "results" # location and name of the output folder
logfile = "simulation.log" # name of the log file logfile = "simulation.log" # name of the log file
loglevel = "debug" # verbosity level: "debug", "normal", "errors" loglevel = "debug" # verbosity level: "debug", "normal", "errors"
quietmode = false # if true, only print log statements to file, not the screen
runtime = 10 # duration in days that the simulation will run for runtime = 10 # duration in days that the simulation will run for
seed = 0 # seed value for the RNG (0 -> random value) seed = 0 # seed value for the RNG (0 -> random value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment