Skip to content

Commit

Permalink
fix type channels
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMarconato committed Dec 26, 2024
1 parent f242e6c commit e2e6709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spatialdata_plot/pl/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ def _render_images(
extent=extent,
)

channels = img.coords["c"].values if render_params.channel is None else render_params.channel
channels = img.coords["c"].values.tolist() if render_params.channel is None else render_params.channel

# the channel parameter has been previously validated, so when not None, render_params.channel is a list
assert isinstance(channels, list)
Expand Down

0 comments on commit e2e6709

Please sign in to comment.