Skip to content

Commit ddd4b9c

Browse files
committed
Fix flake8 complaint
Signed-off-by: M Q <mingmelvinq@nvidia.com>
1 parent f927767 commit ddd4b9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

monai/deploy/operators/monai_seg_inference_operator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,11 @@ def compute_impl(self, input_image, context):
334334
d = [post_transforms(i) for i in decollate_batch(d)]
335335
self._logger.info(f"Post transform length/batch size of output: {len(d)}")
336336
self._logger.info(
337-
f"Post transform pixel spacings of '{self._pred_dataset_key}' in the first output: {d[0][self._pred_dataset_key].pixdim}"
337+
f"Post transform pixel spacings for {self._pred_dataset_key}: {d[0][self._pred_dataset_key].pixdim}"
338338
)
339339
out_ndarray = d[0][self._pred_dataset_key].cpu().numpy() # Single output to numpy on CPU
340340
self._logger.info(
341-
f"Post transform '{self._pred_dataset_key}' of {type(out_ndarray)} shape: {out_ndarray.shape}"
341+
f"Post transform {self._pred_dataset_key} of {type(out_ndarray)} shape: {out_ndarray.shape}"
342342
)
343343
# Need to squeeze out the channel dim fist
344344
out_ndarray = np.squeeze(out_ndarray, 0)
@@ -352,7 +352,7 @@ def compute_impl(self, input_image, context):
352352
# array index order is back to DHW, the same order as the in-memory input Image obj.
353353
out_ndarray = out_ndarray.T.astype(np.uint8)
354354
self._logger.info(
355-
f"Output Seg image numpy array of type '{type(out_ndarray)}' shape: {out_ndarray.shape}"
355+
f"Output Seg image numpy array of type {type(out_ndarray)} shape: {out_ndarray.shape}"
356356
)
357357
self._logger.info(f"Output Seg image pixel max value: {np.amax(out_ndarray)}")
358358

0 commit comments

Comments
 (0)