From ec9bb4f3e141e3194137b805a6acfb8f9f037cf7 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 9 Oct 2023 18:39:38 +0200 Subject: [PATCH] Remove redundant .keys() call --- src/highdicom/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/highdicom/frame.py b/src/highdicom/frame.py index 0f55cda2..0c290da2 100644 --- a/src/highdicom/frame.py +++ b/src/highdicom/frame.py @@ -306,7 +306,7 @@ def encode_frame( 'encoding of image frames with Lossless JPEG-LS codec.' ) - if transfer_syntax_uid in compression_lut.keys(): + if transfer_syntax_uid in compression_lut: image_format, kwargs = compression_lut[transfer_syntax_uid] if samples_per_pixel == 3: image = Image.fromarray(array, mode='RGB')