Skip to content

Commit 968b853

Browse files
committed
WIP add Jupyter notebook for ClaraViz integration
Signed-off-by: M Q <mingmelvinq@nvidia.com>
1 parent 36d632e commit 968b853

File tree

2 files changed

+1396
-3
lines changed

2 files changed

+1396
-3
lines changed

monai/deploy/operators/clara_viz_operator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ def compute(self, op_input, op_output, context):
9898
context (ExecutionContext): An execution context for the operator.
9999
"""
100100
input_image = op_input.receive(self.input_name_image)
101-
if not input_image or isinstance(input_image, Image):
102-
raise ValueError(f"Input image not found or its type {type(Image)} not Image.")
101+
if not input_image:
102+
raise ValueError("Original density image not received in the input.")
103103
input_seg_image = op_input.receive(self.input_name_seg_image)
104104
if not input_seg_image:
105-
raise ValueError(f"Input segmentation image not found or its type {type(Image)} not Image.")
105+
raise ValueError("Segmentation image not received in the input.")
106106

107107
# build the data definition
108108
data_definition = DataDefinition()

0 commit comments

Comments
 (0)