Skip to content

Commit 74f83af

Browse files
committed
Only apply positional colors when len(msims)>1
1 parent 0c24282 commit 74f83af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/napari_stitcher/viewer_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def create_image_layer_tuples_from_msims(
294294
data_as_array=False,
295295
):
296296

297-
if positional_cmaps:
297+
if positional_cmaps and len(msims) > 1:
298298
sims = [spatial_image_utils.get_sim_field(
299299
msi_utils.get_sim_from_msim(msim)) for msim in msims]
300300
cmaps = ['red', 'green', 'blue', 'yellow']

0 commit comments

Comments
 (0)