Skip to content

Commit d45df16

Browse files
committed
One mor pytype fix
Signed-off-by: M Q <mingmelvinq@nvidia.com>
1 parent 7483e0a commit d45df16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/deploy/operators/dicom_seg_writer_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def process_images(
285285
seg_image_numpy = image.asnumpy()
286286
elif isinstance(image, (Path, str)):
287287
seg_image_numpy = self._image_file_to_numpy(str(image))
288-
elif not isinstance(image, np.array):
288+
elif not isinstance(image, np.ndarray):
289289
raise ValueError("'image' is not a numpy array, Image object, or supported image file.")
290290

291291
# Pick DICOM Series that was used as input for getting the seg image.

0 commit comments

Comments
 (0)