Skip to content
Snippets Groups Projects
Commit 4d84b1b9 authored by François  LAURENT's avatar François LAURENT
Browse files

implements #122

parent bd06f7db
No related branches found
No related tags found
2 merge requests!10Set of commits to be tagged v0.16.1,!9v0.16 fixes
Pipeline #106510 passed
......@@ -204,8 +204,14 @@ eval $DOCKER_RUN
predict)
if [ "$(basename "$(dirname "$1")")" = "**" ]; then
parentdir=$(cd "$(dirname "$(dirname "$1")")"; pwd -P)
data_file=$(basename "$(dirname "$1")")/$(basename "$1")
else
parentdir=$(cd "$(dirname "$1")"; pwd -P)
data_file=$(basename "$1"); shift
data_file=$(basename "$1")
fi
shift
RUN_ARGS="$RUN_ARGS -v \"$parentdir\":/data"
......
......@@ -3,7 +3,7 @@ module Toolkit
using DocOpt
using Pkg
using OrderedCollections
using PlanarLarvae, PlanarLarvae.Datasets, PlanarLarvae.Formats
using PlanarLarvae, PlanarLarvae.Datasets, PlanarLarvae.Formats, PlanarLarvae.Dataloaders
include("Taggers.jl")
using .Taggers
......@@ -191,10 +191,14 @@ function main(args=ARGS; exit_on_error=true)
if endswith(datapath, ".txt")
# assume that the file lists paths to data files to be processed;
# in this case, the path to the txt file is not relevant
@info "The listed data file paths are expected to be relative to current directory" cwd=pwd()
pwd()
else
dirname(datapath)
end
elseif occursin("*", datapath)
repository = Dataloaders.Repository(datapath)
repository.root
else
datapath
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