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

Fixed bug where exporting patch at channel zero was confused with white_channel being unspecified

parent 1263a4e6
No related branches found
No related tags found
No related merge requests found
...@@ -428,7 +428,7 @@ class RoiSet(object): ...@@ -428,7 +428,7 @@ class RoiSet(object):
raw.data[:, :, ci, :] raw.data[:, :, ci, :]
) )
else: else:
if white_channel: # interpret as just a single channel if white_channel is not None: # interpret as just a single channel
assert white_channel < raw.chroma assert white_channel < raw.chroma
annotate_rgb = False annotate_rgb = False
for k in ['contour_channel', 'bounding_box_channel', 'mask_channel']: for k in ['contour_channel', 'bounding_box_channel', 'mask_channel']:
......
...@@ -251,7 +251,7 @@ class TestRoiSetMultichannelProducts(BaseTestRoiSetMonoProducts, unittest.TestCa ...@@ -251,7 +251,7 @@ class TestRoiSetMultichannelProducts(BaseTestRoiSetMonoProducts, unittest.TestCa
where = output_path / 'multichannel' / 'mono_2d_patches' where = output_path / 'multichannel' / 'mono_2d_patches'
df_res = self.roiset.export_patches( df_res = self.roiset.export_patches(
where, where,
white_channel=3, white_channel=0,
draw_bounding_box=True, draw_bounding_box=True,
expanded=True, expanded=True,
pad_to=256, pad_to=256,
......
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