Skip to content

Commit

Permalink
Merge pull request #263 from DimitriPapadopoulos/keys
Browse files Browse the repository at this point in the history
Remove redundant `.keys()` call
  • Loading branch information
CPBridge committed Oct 11, 2023
2 parents 0292fb8 + ec9bb4f commit 523be18
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 523be18

Please sign in to comment.