Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
EpiCure
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaëlle LETORT
EpiCure
Merge requests
!6
Epibranch
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Epibranch
epibranch
into
main
Overview
0
Commits
7
Pipelines
0
Changes
12
Merged
Gaëlle LETORT
requested to merge
epibranch
into
main
1 year ago
Overview
0
Commits
7
Pipelines
0
Changes
12
Expand
outputs, time, checking
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
2c66bf8a
7 commits,
1 year ago
12 files
+
591
−
194
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
Search (e.g. *.vue) (Ctrl+P)
src/epicure/Utils.py
+
10
−
0
Options
@@ -279,6 +279,16 @@ def get_free_label(layer):
return
i
return
i
+
2
def
get_next_label
(
layer
,
label
):
"""
Get the next unused label starting from label
"""
used
=
np
.
unique
(
layer
.
data
)
i
=
label
while
i
<
np
.
max
(
used
):
if
i
>
0
and
(
i
not
in
used
):
return
i
i
=
i
+
1
return
i
+
1
def
relabel_layer
(
layer
):
maxlab
=
np
.
max
(
layer
.
data
)
used
=
np
.
unique
(
layer
.
data
)