Skip to content

Commit

Permalink
fix accidentally deleted lines
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamaedler committed May 27, 2024
1 parent 2b1dcaf commit 396706e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sparcscore/utils/vis.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def plot_segmentation_mask(
segmentation = segmentation[mask_channel, :, :]
image = channels[image_channel, :, :]
else:
segmentation = segmentation[mask_channel, selehannels[image_channel, selection[0], selection[1]]
segmentation = segmentation[mask_channel, selection[0], selection[1]]
image = channels[image_channel, selection[0], selection[1]]

#set background to np.nan so that its not visualized
segmentation = np.where(segmentation == background, np.nan, segmentation)
Expand Down

0 comments on commit 396706e

Please sign in to comment.