Skip to content

Drop Python3.9 and bump kwave to v0.4.0 (#399)#410

Merged
ebrahimebrahim merged 3 commits into
mainfrom
399-drop-python-39-support-and-upgrade-kwave
Jan 9, 2026
Merged

Drop Python3.9 and bump kwave to v0.4.0 (#399)#410
ebrahimebrahim merged 3 commits into
mainfrom
399-drop-python-39-support-and-upgrade-kwave

Conversation

@ebrahimebrahim
Copy link
Copy Markdown
Collaborator

@ebrahimebrahim ebrahimebrahim commented Jan 8, 2026

This also pins numpy to <2 to maintain compatibility with onnx==1.18.0, which was needed due to #309 (and #309 may still be affecting some users).

@ebrahimebrahim ebrahimebrahim linked an issue Jan 8, 2026 that may be closed by this pull request
@ebrahimebrahim ebrahimebrahim force-pushed the 399-drop-python-39-support-and-upgrade-kwave branch from eef0755 to a9c8fed Compare January 8, 2026 19:47
Pin numpy<2 for compatibility with onnxruntime 1.18.0, which was
compiled against NumPy 1.x and fails to import with NumPy 2.x.
onnxruntime is pinned to 1.18.0 due to Windows DLL issues in newer
versions (see #309).
@ebrahimebrahim ebrahimebrahim force-pushed the 399-drop-python-39-support-and-upgrade-kwave branch from a9c8fed to b22640e Compare January 8, 2026 21:42
It seems to be a bug in kwave that causes this warning to be raised even
when the binary name is correct. It shouldn't affect usage.
@ebrahimebrahim
Copy link
Copy Markdown
Collaborator Author

@sadhana-r It is a very small PR; it just looks big because one commit has to do a style change to drop a the python 3.9 way of doing type unions.

I think you said you already tested kwave 0.4.0 in the custom app and had no issues right? One of us should try this specific branch in the slicer 5.10 version of the custom app and make sure there are no problems:

slicer.util.pip_install("git+https://github.com/OpenwaterHealth/OpenLIFU-python@c6ac211cf46e58737281aaa4053fe8106eee3e30")

I will do it if I get to it first!

@ebrahimebrahim
Copy link
Copy Markdown
Collaborator Author

@sadhana-r Alright I tested a workflow in the app. Nothing wrong up through computing a sonication solution. I tested by building the custom app from OpenwaterHealth/openlifu-desktop-application#70 and then installing this branch of OpenLIFU-python into the app.

So no need for you to test; just code review the two small non-style commits here.

Copy link
Copy Markdown
Contributor

@sadhana-r sadhana-r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good to me! And yes, I also tested kwave v0.4.0 and didn't have any issues!

@ebrahimebrahim ebrahimebrahim merged commit a204903 into main Jan 9, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop Python 3.9 support and upgrade kwave

2 participants