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
db0a2d56
Commit
db0a2d56
authored
2 years ago
by
François LAURENT
Browse files
Options
Downloads
Patches
Plain Diff
fixes #25
parent
40ed30f5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/LarvaDatasets.jl
+2
-1
2 additions, 1 deletion
src/LarvaDatasets.jl
with
2 additions
and
1 deletion
src/LarvaDatasets.jl
+
2
−
1
View file @
db0a2d56
...
...
@@ -597,7 +597,8 @@ function write_larva_dataset_hdf5(output_dir::String,
sample_sizes
,
total_sample_size
=
thresholdedcounts
(
counts
)
end
# ensure label order is preserved
sample_sizes
=
OrderedDict
((
label
=>
sample_sizes
[
label
])
for
label
in
labels
if
label
in
keys
(
sample_sizes
))
labels′
=
isnothing
(
includeall
)
?
labels
:
push!
(
collect
(
labels
),
includeall
)
sample_sizes
=
OrderedDict
((
label
=>
sample_sizes
[
label
])
for
label
in
labels′
if
label
in
keys
(
counts
))
#
@info
"Sample sizes (observed, selected):"
[
Symbol
(
label
)
=>
(
get
(
counts
,
label
,
0
),
get
(
sample_sizes
,
label
,
0
))
for
label
in
labels
]
...
date
=
Dates
.
format
(
Dates
.
now
(),
"yyyy_mm_dd"
)
...
...
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