Skip to content

Commit

Permalink
squeeze scale with image (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
talonchandler authored Aug 31, 2023
1 parent f2d5bb8 commit d644cc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recOrder/plugin/main_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,8 @@ def _add_or_update_image_layer(
"""
if image.shape[0] == 1:
image = image.squeeze(axis=0)
scale = scale[1:]

scale = scale[-image.ndim :] # match shapes

if name in self.viewer.layers:
Expand Down Expand Up @@ -1275,7 +1277,6 @@ def update_overlay_dask_array(self):
ret_max=self.ret_max,
cmap=self.colormap,
)

self._add_or_update_image_layer(
overlay, self.overlay_name, cmap="rgb", scale=self.overlay_scale
)
Expand Down

0 comments on commit d644cc2

Please sign in to comment.