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

Merge branch 'make_mono_channel_zero' into 'staging'

Bug - exporting white_channel equal zero

See merge request !27
parents 1237dcda ec916bf7
No related branches found
No related tags found
3 merge requests!37Release 2024.04.19,!34Revert "Temporary error-handling for debug...",!27Bug - exporting white_channel equal zero
......@@ -428,7 +428,7 @@ class RoiSet(object):
raw.data[:, :, ci, :]
)
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
annotate_rgb = False
for k in ['contour_channel', 'bounding_box_channel', 'mask_channel']:
......
......@@ -251,7 +251,7 @@ class TestRoiSetMultichannelProducts(BaseTestRoiSetMonoProducts, unittest.TestCa
where = output_path / 'multichannel' / 'mono_2d_patches'
df_res = self.roiset.export_patches(
where,
white_channel=3,
white_channel=0,
draw_bounding_box=True,
expanded=True,
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