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

Updated CHANGELOG, added debugging code

parent aea0e548
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
current working directory. If not, it checks whether it can be reached from the package directory.
This makes running simulations easier when Persefone has been installed as a package.
- `simulate()` and `initialise()` now take a `params` keyword argument that can be used to
override parameters from other input sources
### Deprecated
### Removed
......
......@@ -97,11 +97,14 @@ function preprocessparameters(settings::Dict{String,Any}, defaultoutdir::String)
end
# check if input data are present in the working directory or the package directory
if !isdir(settings["world.mapdirectory"])
@warn "$(@param(world.mapdirectory)) not found in current working directory."
if isdir(abspath(pkgdir(@__MODULE__), settings["world.mapdirectory"]))
settings["world.mapdirectory"] = abspath(pkgdir(@__MODULE__), settings["world.mapdirectory"])
@debug "Using package directory to load map data: $(settings["world.mapdirectory"])".
@warn "Using package directory to load maps: $(@param(world.mapdirectory))."
#@debug "Using package directory to load map data: $(settings["world.mapdirectory"])".
else
Base.error("Couldn't find map directory $(settings["world.mapdirectory"]).")
@warn "Couldn't find maps at $(@param(world.mapdirectory))."
#Base.error("Couldn't find map directory $(settings["world.mapdirectory"]).") #FIXME
end
end
if !isdir(settings["crop.cropdirectory"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment