Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LarvaTagger.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nyx
LarvaTagger.jl
Commits
82890d18
Commit
82890d18
authored
1 year ago
by
François LAURENT
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into 'main'
Set of commits to be tagged v0.16.1 Closes
#121
and
#122
See merge request
!10
parents
a6f1a658
7d09ca55
No related branches found
No related tags found
1 merge request
!10
Set of commits to be tagged v0.16.1
Pipeline
#106522
passed
1 year ago
Stage: test
Changes
5
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Project.toml
+1
-1
1 addition, 1 deletion
Project.toml
recipes/README.md
+1
-1
1 addition, 1 deletion
recipes/README.md
scripts/larvatagger.sh
+15
-2
15 additions, 2 deletions
scripts/larvatagger.sh
src/cli_toolkit.jl
+5
-1
5 additions, 1 deletion
src/cli_toolkit.jl
src/files.jl
+1
-1
1 addition, 1 deletion
src/files.jl
with
23 additions
and
6 deletions
Project.toml
+
1
−
1
View file @
82890d18
name
=
"LarvaTagger"
uuid
=
"8b3b36f1-dfed-446e-8561-ea19fe966a4d"
authors
=
[
"François Laurent"
,
"Institut Pasteur"
]
version
=
"0.16"
version
=
"0.16
.1
"
[deps]
Colors
=
"5ae59095-9a9b-59fe-a467-6f913c188581"
...
...
This diff is collapsed.
Click to expand it.
recipes/README.md
+
1
−
1
View file @
82890d18
...
...
@@ -163,7 +163,7 @@ docker pull flaur/larvatagger
```
Beware that images that ship with backends are relatively large files (>5GB on disk).
If you are not interested in automatic tagging, use the `
flaur/larvatagger:0.16-standalone
` image instead.
If you are not interested in automatic tagging, use the `
flaur/larvatagger:0.16
.1
-standalone
` image instead.
### Upgrading
...
...
This diff is collapsed.
Click to expand it.
scripts/larvatagger.sh
+
15
−
2
View file @
82890d18
...
...
@@ -22,6 +22,10 @@ for _ in $(seq $#); do
shift
;;
*
)
if
[
"
$1
"
=
"--no-cache"
]
;
then
# --no-cache is default for build since 0.16.1
no_cache
=
1
fi
# note: if DOCKER_ARGS is externally defined, it must end with an explicit space
DOCKER_ARGS
=
"
${
DOCKER_ARGS
}
$1
"
shift
...
...
@@ -78,12 +82,15 @@ DOCKER_ARGS="--build-arg BACKEND=${1:15} $DOCKER_ARGS"; shift
TARGET
=
backend
elif
[
"
$1
"
=
"--no-cache"
]
;
then
echo
"Deprecation warning: argument
$1
should now be passed before build"
DOCKER_ARGS
=
"--no-cache
$DOCKER_ARGS
"
;
shift
shift
else
echo
"argument not supported:
$1
"
;
shift
exit
1
fi
done
if
[
-z
"
$no_cache
"
]
;
then
DOCKER_ARGS
=
"--no-cache
$DOCKER_ARGS
"
fi
DOCKER_ARGS
=
"--target
$TARGET
$DOCKER_ARGS
"
if
[
"
$BUILD
"
==
"--dev"
]
;
then
if
!
[[
"
$LARVATAGGER_IMAGE
"
==
*
:
*
]]
;
then
LARVATAGGER_IMAGE
=
"
${
LARVATAGGER_IMAGE
}
:dev"
;
fi
...
...
@@ -204,8 +211,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"
...
...
This diff is collapsed.
Click to expand it.
src/cli_toolkit.jl
+
5
−
1
View file @
82890d18
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/files.jl
+
1
−
1
View file @
82890d18
...
...
@@ -408,7 +408,7 @@ function explicit_editions_needed(controller, editiontag)
file
=
preload
(
originalfile
)
if
file
isa
Formats
.
JSONLabels
Formats
.
load!
(
file
)
return
haskey
(
file
.
run
,
:
labels
)
return
haskey
(
file
.
run
.
attributes
,
:
labels
)
elseif
file
isa
Formats
.
Trxmat
return
true
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment