Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TaggingBackends
Manage
Activity
Members
Labels
Plan
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
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
TaggingBackends
Commits
503e8425
Commit
503e8425
authored
2 years ago
by
François LAURENT
Browse files
Options
Downloads
Plain Diff
version increment
parents
eb45d139
1e50a107
No related branches found
No related tags found
No related merge requests found
Pipeline
#94393
passed
2 years ago
Stage: test
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Project.toml
+1
-1
1 addition, 1 deletion
Project.toml
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
src/LarvaDatasets.jl
+5
-7
5 additions, 7 deletions
src/LarvaDatasets.jl
with
7 additions
and
9 deletions
Project.toml
+
1
−
1
View file @
503e8425
name
=
"TaggingBackends"
uuid
=
"e551f703-3b82-4335-b341-d497b48d519b"
authors
=
[
"François Laurent"
,
"Institut Pasteur"
]
version
=
"0.7"
version
=
"0.7
.1
"
[deps]
Dates
=
"ade2ca70-3891-5945-98fb-dc099432e06a"
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
1
−
1
View file @
503e8425
[tool.poetry]
name
=
"TaggingBackends"
version
=
"0.7"
version
=
"0.7
.1
"
description
=
"Backbone for LarvaTagger.jl tagging backends"
authors
=
[
"François Laurent"
]
...
...
This diff is collapsed.
Click to expand it.
src/LarvaDatasets.jl
+
5
−
7
View file @
503e8425
...
...
@@ -271,17 +271,18 @@ function write_larva_dataset_hdf5(path, counts, files, refs, nsteps_before, nste
end
end
h5open
(
path
,
"w"
)
do
h5
g
=
create_group
(
h5
,
"samples"
)
Threads
.
foreach
(
ch
)
do
(
file
,
refs
,
sampleid
)
@info
"Sampling series of spines in run:
$
(runid(file))"
processfile
(
h5
,
file
,
refs
,
sampleid
,
nsteps_before
,
nsteps_after
;
processfile
(
g
,
file
,
refs
,
sampleid
,
nsteps_before
,
nsteps_after
;
fixmwt
=
fixmwt
,
frameinterval
=
frameinterval
)
end
attributes
(
h5
[
"samples"
]
)[
"n_samples"
]
=
sampleid
attributes
(
g
)[
"n_samples"
]
=
sampleid
# extension
h5
[
"labels"
]
=
collect
(
keys
(
counts
))
#h5["files"] = [f.source for f in files]
if
!
isnothing
(
frameinterval
)
attributes
(
h5
[
"samples"
]
)[
"frame_interval"
]
=
frameinterval
attributes
(
g
)[
"frame_interval"
]
=
frameinterval
end
end
end
...
...
@@ -363,7 +364,7 @@ function processfile(h5, file, refs, sampleid, nsteps_before, nsteps_after;
sample
[
:
,
8
]
=
lengths
sample
[
:
,
9
:
end
]
=
spines
#
name
=
"
samples/
sample_
$
sampleid"
name
=
"sample_
$
sampleid"
# transpose for compatibility with h5py
# see issue https://github.com/JuliaIO/HDF5.jl/issues/785
h5
[
name
]
=
permutedims
(
sample
,
reverse
(
1
:
ndims
(
sample
)))
...
...
@@ -517,9 +518,6 @@ function write_larva_dataset_hdf5(output_dir::String,
h5open
(
output_file
,
"cw"
)
do
h5
attributes
(
h5
[
"samples"
])[
"len_traj"
]
=
window_length
attributes
(
h5
[
"samples"
])[
"len_pred"
]
=
window_length
if
!
isnothing
(
frameinterval
)
attributes
(
h5
[
"samples"
])[
"frame_interval"
]
=
frameinterval
end
end
return
output_file
end
...
...
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