Skip to content

Commit 6f4f26b

Browse files
committed
Fix Copilot nits
Signed-off-by: M Q <mingmelvinq@nvidia.com>
1 parent 622ed66 commit 6f4f26b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

monai/deploy/operators/decoder_nvimgcodec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def _decode_frame(src: bytes, runner: DecodeRunner) -> bytearray | bytes:
171171
# Double check if the transfer syntax is supported although the runner should be correct.
172172
tsyntax = runner.transfer_syntax
173173
if not is_available(tsyntax):
174-
raise ImportError(f"Transfer syntax {tsyntax} not supported; see details in the debug log.")
174+
raise ValueError(f"Transfer syntax {tsyntax} not supported; see details in the debug log.")
175175

176176
nvimgcodec_decoder = nvimgcodec.Decoder()
177177
decode_params = nvimgcodec.DecodeParams(allow_any_depth=True, color_spec=nvimgcodec.ColorSpec.UNCHANGED)

monai/deploy/operators/dicom_series_to_volume_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(self, fragment: Fragment, *args, affine_lps_to_ras: bool = True, **
6363
self.output_name_image = "image"
6464
self.affine_lps_to_ras = affine_lps_to_ras
6565
if not decoder_nvimgcodec.register_as_decoder_plugin():
66-
logging.warning("The nvimgcodec decoder plugin did not registered successfully.")
66+
logging.warning("The nvimgcodec decoder plugin did not register successfully.")
6767

6868
# Need to call the base class constructor last
6969
super().__init__(fragment, *args, **kwargs)

0 commit comments

Comments
 (0)