Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
model_server
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
Christopher Randolph Rhodes
model_server
Commits
292c8b5c
Commit
292c8b5c
authored
11 months ago
by
Christopher Randolph Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
Caught issue in a test
parent
c1e6412d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!37
Release 2024.04.19
,
!34
Revert "Temporary error-handling for debug..."
,
!25
Allow "expanded" parameter to patch exports
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_roiset.py
+26
-0
26 additions, 0 deletions
tests/test_roiset.py
with
26 additions
and
0 deletions
tests/test_roiset.py
+
26
−
0
View file @
292c8b5c
...
...
@@ -400,6 +400,32 @@ class TestRoiSetMultichannelProducts(BaseTestRoiSetMonoProducts, unittest.TestCa
for
f
in
test_df
[
c
]:
self
.
assertTrue
((
where
/
f
).
exists
(),
where
/
f
)
def
test_run_export_expanded_2d_patch
(
self
):
p
=
RoiSetExportParams
(
**
{
'
patches_2d
'
:
{
'
draw_bounding_box
'
:
False
,
'
draw_mask
'
:
False
,
'
expanded
'
:
True
,
'
pad_to
'
:
256
,
},
})
where
=
output_path
/
'
run_exports_expanded_2d_patch
'
res
=
self
.
roiset
.
run_exports
(
where
,
channel
=-
1
,
prefix
=
'
test
'
,
params
=
p
)
# test that exported patches are padded dimension
for
fn
in
res
[
'
patches_2d
'
]:
pa
=
where
/
fn
self
.
assertTrue
(
pa
.
exists
())
pacc
=
generate_file_accessor
(
pa
)
self
.
assertEqual
(
pacc
.
hw
,
(
256
,
256
))
print
(
'
res
'
)
class
TestRoiSetFromZmask
(
unittest
.
TestCase
):
...
...
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