Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SVLT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
ALMF
SVLT
Commits
d63f13ef
Commit
d63f13ef
authored
4 months ago
by
Christopher Randolph Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
Hooked up overlay map to export runner
parent
e8461666
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
model_server/base/roiset.py
+7
-0
7 additions, 0 deletions
model_server/base/roiset.py
tests/base/test_roiset.py
+8
-0
8 additions, 0 deletions
tests/base/test_roiset.py
with
15 additions
and
0 deletions
model_server/base/roiset.py
+
7
−
0
View file @
d63f13ef
...
@@ -713,6 +713,11 @@ class RoiSet(object):
...
@@ -713,6 +713,11 @@ class RoiSet(object):
else
:
else
:
return
acc_out
return
acc_out
def
export_object_identities_overlay_map
(
self
,
where
,
white_channel
,
prefix
=
'
obmap_overlay
'
,
**
kwargs
)
->
str
:
acc
=
self
.
get_object_identities_overlay_map
(
white_channel
=
white_channel
,
**
kwargs
)
fp
=
where
/
(
prefix
+
'
.tif
'
)
return
acc
.
write
(
fp
,
composite
=
True
).
name
def
get_serializable_dataframe
(
self
)
->
pd
.
DataFrame
:
def
get_serializable_dataframe
(
self
)
->
pd
.
DataFrame
:
return
self
.
_df
.
drop
([
'
expanded_slice
'
,
'
slice
'
,
'
relative_slice
'
,
'
binary_mask
'
],
axis
=
1
)
return
self
.
_df
.
drop
([
'
expanded_slice
'
,
'
slice
'
,
'
relative_slice
'
,
'
binary_mask
'
],
axis
=
1
)
...
@@ -973,6 +978,8 @@ class RoiSet(object):
...
@@ -973,6 +978,8 @@ class RoiSet(object):
fp
.
parent
.
mkdir
(
exist_ok
=
True
,
parents
=
True
)
fp
.
parent
.
mkdir
(
exist_ok
=
True
,
parents
=
True
)
dacc
.
export_pyxcz
(
fp
)
dacc
.
export_pyxcz
(
fp
)
record
[
k
].
append
(
str
(
fp
))
record
[
k
].
append
(
str
(
fp
))
if
k
==
'
labels_overlay
'
:
record
[
k
]
=
str
(
Path
(
k
)
/
self
.
export_object_identities_overlay_map
(
subdir
,
white_channel
=
channel
,
**
kp
))
# export dataframe and patch masks
# export dataframe and patch masks
record
=
{
**
record
,
**
self
.
serialize
(
where
,
prefix
=
prefix
)}
record
=
{
**
record
,
**
self
.
serialize
(
where
,
prefix
=
prefix
)}
...
...
This diff is collapsed.
Click to expand it.
tests/base/test_roiset.py
+
8
−
0
View file @
d63f13ef
...
@@ -390,6 +390,14 @@ class TestRoiSetMultichannelProducts(BaseTestRoiSetMonoProducts, unittest.TestCa
...
@@ -390,6 +390,14 @@ class TestRoiSetMultichannelProducts(BaseTestRoiSetMonoProducts, unittest.TestCa
self
.
assertEqual
(
acc_out
.
nz
,
1
)
self
.
assertEqual
(
acc_out
.
nz
,
1
)
acc_out
.
write
(
where
/
'
overlay_composite_mip.tif
'
,
composite
=
True
)
acc_out
.
write
(
where
/
'
overlay_composite_mip.tif
'
,
composite
=
True
)
# export via .run_exports() method
self
.
roiset
.
run_exports
(
where
,
channel
=-
1
,
prefix
=
'
run_exports
'
,
params
=
RoiSetExportParams
(
**
{
'
labels_overlay
'
:
{
'
transparency
'
:
0.2
,
'
mip
'
:
True
,
'
rescale_clip
'
:
0.00
}})
)
def
test_multichannel_annotated_zstack
(
self
):
def
test_multichannel_annotated_zstack
(
self
):
...
...
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