Skip to content

Commit 7483e0a

Browse files
committed
Fix pytype complaints
Signed-off-by: M Q <mingmelvinq@nvidia.com>
1 parent a0f013d commit 7483e0a

File tree

4 files changed

+2
-225
lines changed

4 files changed

+2
-225
lines changed

monai/deploy/core/env.py

Lines changed: 0 additions & 85 deletions
This file was deleted.

monai/deploy/core/resource.py

Lines changed: 0 additions & 139 deletions
This file was deleted.

monai/deploy/operators/dicom_seg_writer_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def compute(self, op_input, op_output, context):
253253
seg_image = op_input.receive(self.input_name_seg)
254254

255255
# In case the input is not the Image object, rather image file path.
256-
if not isinstance(seg_image, (Image, np.array)) and (isinstance(seg_image, (Path, str))):
256+
if not isinstance(seg_image, (Image, np.ndarray)) and (isinstance(seg_image, (Path, str))):
257257
seg_image_file, _ = self.select_input_file(str(seg_image))
258258
if Path(seg_image_file).is_file():
259259
seg_image = self._image_file_to_numpy(seg_image_file)

monai/deploy/operators/dicom_text_sr_writer_operator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ def test(test_copy_tags: bool = True):
278278
model_info=None,
279279
equipment_info=EquipmentInfo(),
280280
custom_tags={"SeriesDescription": "Textual report from AI algorithm. Not for clinical use."},
281+
name="sr_writer",
281282
)
282283

283284
# Testing with the main entry functions

0 commit comments

Comments
 (0)