Skip to content

Commit

Permalink
Only apply positional colors when len(msims)>1
Browse files Browse the repository at this point in the history
  • Loading branch information
m-albert committed Nov 12, 2024
1 parent 0c24282 commit 74f83af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/napari_stitcher/viewer_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def create_image_layer_tuples_from_msims(
data_as_array=False,
):

if positional_cmaps:
if positional_cmaps and len(msims) > 1:
sims = [spatial_image_utils.get_sim_field(
msi_utils.get_sim_from_msim(msim)) for msim in msims]
cmaps = ['red', 'green', 'blue', 'yellow']
Expand Down

0 comments on commit 74f83af

Please sign in to comment.