Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PlanarLarvae.jl
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nyx
PlanarLarvae.jl
Commits
00a08e64
Commit
00a08e64
authored
2 years ago
by
François LAURENT
Browse files
Options
Downloads
Patches
Plain Diff
bugfix in previously dead code
parent
7b8e1730
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!3
Set of commits to be tagged v0.13
Pipeline
#106814
failed
2 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Dataloaders.jl
+7
-3
7 additions, 3 deletions
src/Dataloaders.jl
with
7 additions
and
3 deletions
src/Dataloaders.jl
+
7
−
3
View file @
00a08e64
...
...
@@ -103,7 +103,7 @@ function segment(file, window, trackid, step, class)
@assert
1
<
step
<
length
(
ts
)
@inbounds
anchortime
=
round
(
ts
[
step
];
digits
=
4
)
segmentdata
=
if
isnothing
(
window
.
samplerate
)
@assert
track
isa
LarvaBase
.
TimeSeries
@assert
track
isa
LarvaBase
.
TimeSeries
"Not implemented; try defining samplerate"
t0
,
t1
=
anchortime
-
window
.
durationbefore
,
anchortime
+
window
.
durationafter
[(
t
,
x
)
for
(
t
,
x
)
in
track
if
t0
<=
t
<=
t1
]
else
...
...
@@ -608,9 +608,13 @@ function sample(sampler, file, window, counts, features; verbose=false)
end
Formats
.
load!
(
file′
)
end
elseif
isempty
(
file
.
timeseries
)
else
isempty
(
file
.
timeseries
)
||
empty!
(
file
.
timeseries
)
capabilities
=
[
cap
[
1
]
for
cap
in
file
.
capabilities
]
for
capability
in
(
:
spine
,
:
outline
,
:
tags
)
capability
in
file
.
capabilities
&&
capability
∉
features
&&
Formats
.
drop_record!
(
file
,
capability
)
if
capability
in
capabilities
&&
capability
∉
features
Formats
.
drop_record!
(
file
,
capability
)
end
end
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