Skip to content

Commit 523be18

Browse files
authored
Merge pull request #263 from DimitriPapadopoulos/keys
Remove redundant `.keys()` call
2 parents 0292fb8 + ec9bb4f commit 523be18

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)