-
Notifications
You must be signed in to change notification settings - Fork 33
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
Update record_reader.py to remove warnings #211
Conversation
This is the best I can do for the time being. It would seem many methods are not careful about zero division, but this is also the case in MATLAB, so fixing k-wave-python breaks tests. |
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.
Left some comments
@@ -2720,6 +2726,8 @@ def calculate_axial_pressure() -> float: | |||
def calculate_lateral_pressure() -> float: | |||
# calculate magnitude of the lateral pressure at the geometric focus | |||
Z = k * lateral_positions * diameter / (2 * radius) | |||
# TODO: this should work | |||
# assert np.all(Z) > 0, 'Z must be greater than 0' |
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.
Why not to enable this check?
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.
this fails the CI.
Sorry for keeping this PR unreviewed for such a long time! |
…-python into clean-up-pytest-warnings
…-python into clean-up-pytest-warnings
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.
LGTM!
…-python into clean-up-pytest-warnings
No description provided.