Skip to content

Commit

Permalink
Remove redundant .keys() call
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Oct 9, 2023
1 parent b4bb70c commit ec9bb4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/highdicom/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit ec9bb4f

Please sign in to comment.