Skip to content

Commit ec9bb4f

Browse files
Remove redundant .keys() call
1 parent b4bb70c commit ec9bb4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/highdicom/frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def encode_frame(
306306
'encoding of image frames with Lossless JPEG-LS codec.'
307307
)
308308

309-
if transfer_syntax_uid in compression_lut.keys():
309+
if transfer_syntax_uid in compression_lut:
310310
image_format, kwargs = compression_lut[transfer_syntax_uid]
311311
if samples_per_pixel == 3:
312312
image = Image.fromarray(array, mode='RGB')

0 commit comments

Comments
 (0)