We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0292fb8 + ec9bb4f commit 523be18Copy full SHA for 523be18
1 file changed
src/highdicom/frame.py
@@ -306,7 +306,7 @@ def encode_frame(
306
'encoding of image frames with Lossless JPEG-LS codec.'
307
)
308
309
- if transfer_syntax_uid in compression_lut.keys():
+ if transfer_syntax_uid in compression_lut:
310
image_format, kwargs = compression_lut[transfer_syntax_uid]
311
if samples_per_pixel == 3:
312
image = Image.fromarray(array, mode='RGB')
0 commit comments