Skip to content

Commit e1032b9

Browse files
committed
different way
1 parent 2156ab2 commit e1032b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

episodes/05-creating-histograms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ mask[circle] = 1
412412
# make a copy of the image, call it masked_image, and
413413
# zero values where mask is False
414414
masked_img = np.array(wellplate)
415-
masked_img[mask == False] = 0
415+
masked_img[~mask] = 0
416416

417417
# create a new figure and display masked_img, to verify the
418418
# validity of your mask

0 commit comments

Comments
 (0)