Skip to content

Commit 05e1552

Browse files
committed
Replaced 'np.bool' (deprecated: 1.20, removed: 1.24) with 'bool'
1 parent 40cf00d commit 05e1552

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

iris/segmentation/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def save_mask(image_id):
272272
# The user mask denotes who classified the pixels in the mask:
273273
# if true: the user classified the pixel
274274
# if false: the AI classified the pixel
275-
user_mask = data[1+mask_length:-1].astype(np.bool)
275+
user_mask = data[1+mask_length:-1].astype(bool)
276276
user_mask = user_mask.reshape(project['segmentation']['mask_shape'][::-1])
277277

278278
final_mask_file, user_mask_file = get_mask_filenames(image_id, user_id)

0 commit comments

Comments
 (0)