Skip to content

Commit

Permalink
Revert "squeeze scale with image"
Browse files Browse the repository at this point in the history
This reverts commit d373a1e.
  • Loading branch information
talonchandler committed Aug 31, 2023
1 parent d373a1e commit 70d2427
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions recOrder/plugin/main_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,8 +1156,6 @@ 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 @@ -1277,6 +1275,7 @@ 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 70d2427

Please sign in to comment.