Skip to content
Snippets Groups Projects
Commit 292c8b5c authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Caught issue in a test

parent c1e6412d
No related branches found
No related tags found
3 merge requests!37Release 2024.04.19,!34Revert "Temporary error-handling for debug...",!25Allow "expanded" parameter to patch exports
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment