Skip to content
Snippets Groups Projects
Commit 7fc90bfe authored by Florian Atteneder's avatar Florian Atteneder
Browse files

add isdir check

parent 68474d19
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,10 @@ $ julia --project -e "using Pkg; Pkg.instantiate()"
# Setup
To access data from somewhere else on the disk we use a symlink located `public/data`
that points to the files.
that points to the files, e.g.
```sh
$ ln -s <path/to/rootdir> public/data
```
# Start the server
......
......@@ -54,7 +54,8 @@ end
route("/") do
rootdir = "./public/data/dg1d.jl/pars/test_advection"
rootdir = "./public/data/test_advection"
@assert isdir(rootdir) "Rootdir '$rootdir' not found!"
outputdirs = gather_outputdirs(rootdir)
prms = [ TOML.parsefile(joinpath(dir, "$(Filesystem.basename(dir)).toml"))
for dir in outputdirs ]
......@@ -113,9 +114,11 @@ end
route("/plots") do
rootdir = "./public/data/dg1d.jl/pars/test_advection"
rootdir = "./public/data/test_advection"
@assert isdir(rootdir) "Rootdir '$rootdir' not found!"
outputdirs = gather_outputdirs(rootdir)
plotpaths = [ joinpath(dir, "evolution_mu.png") for dir in outputdirs ]
display(plotpaths)
slideshow = html_slideshow(plotpaths)
html = Html.html(slideshow)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment