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

Repaired a few things that were causing ilastik test failures

parent 29bbcf6f
No related branches found
No related tags found
No related merge requests found
...@@ -363,7 +363,7 @@ class TestIlastikOnMultichannelInputs(conf.TestServerBaseClass): ...@@ -363,7 +363,7 @@ class TestIlastikOnMultichannelInputs(conf.TestServerBaseClass):
acc_input = generate_file_accessor(self.pa_input_image) acc_input = generate_file_accessor(self.pa_input_image)
acc_obmap = generate_file_accessor(res.object_map_filepath) acc_obmap = generate_file_accessor(res.object_map_filepath)
self.assertEqual(acc_obmap.hw, acc_input.hw) self.assertEqual(acc_obmap.hw, acc_input.hw)
self.assertEqual(len(acc_obmap._unique()[1]), 3) self.assertEqual(len(acc_obmap.unique()[1]), 3)
def test_api(self): def test_api(self):
...@@ -401,9 +401,9 @@ class TestIlastikObjectClassification(unittest.TestCase): ...@@ -401,9 +401,9 @@ class TestIlastikObjectClassification(unittest.TestCase):
stack_ch_pa = stack.get_mono(conf.meta['roiset']['patches_channel']) stack_ch_pa = stack.get_mono(conf.meta['roiset']['patches_channel'])
seg_mask = generate_file_accessor(data['multichannel_zstack_mask2d']['path']) seg_mask = generate_file_accessor(data['multichannel_zstack_mask2d']['path'])
self.roiset = RoiSet( self.roiset = RoiSet.from_binary_mask(
stack_ch_pa, stack_ch_pa,
get_label_ids(seg_mask), seg_mask,
params=RoiSetMetaParams( params=RoiSetMetaParams(
mask_type='boxes', mask_type='boxes',
filters={'area': {'min': 1e3, 'max': 1e4}}, filters={'area': {'min': 1e3, 'max': 1e4}},
......
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