-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Python 3.12 CI tests #267
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will have to wait until jpegls is working on 3.12 before we can add this I think
Waiting until dependencies work with 3.12
I understand this depends on pillow-jpls, doesn't it? I have opened issue planetmarshall/pillow-jpls#20. |
Yes that's right, thanks for notifying upstream |
Is there a reason for pillow-jpls not being an extra like pylibjpeg et al? |
I think this is because some kind of JPEG library is needed. From the Installation guide:
|
Sure, but if a user need to read Jpeg-LS it would be easy to install the extra. Pillow typically supports Jpeg and Jpeg 2000 without any extra packages. |
That's correct. The main reason that pylibjpeg is optional is licence considerations. Since there are no such issues with Generally we have been a bit wary of this approach of having a confusing mess of optional dependencies |
Thanks for the clarification @CPBridge. I agree that optional dependencies can be messy and that you should consider making it optional if it looks like its no longer maintained. |
So the idea would be to add a highdicom/src/highdicom/frame.py Lines 260 to 261 in 0f43f8e
|
I (too) made a PR to pillow-jpls for Python 3.12 and Pillow 10 support. Regarding reading mpressed transfer syntaxes other than standard jpeg and jpeg 2000, wsidicom uses imagecodecs for decoding and encoding jpeg 12 bit, jpeg lossless, and jpeg ls. |
Thanks @erikogabrielsson . I had sort of hoped that pillow-jpls would come back to life and save us from having to work around this, but that is looking increasingly less likely. I will look into whether |
From what I understand, highdicom only uses pillow-jpls to enable encoding? Decoding can only be done if having the return jpegls_encode(array) in the jpeg ls statement in |
Looks like the issue is now addressed. Hopefulle we will se a build for 3.12 soon. |
Merging this now that the dependency issue is fixed |
No description provided.