Skip to content

Conversation

@stellaprins
Copy link
Collaborator

What does this PR do?

Fixes #15 Bug: input checking gives misleading message 🐛

medium.alpha_coeff was incorrectly checked in kspaceFirstOrder_inputChecking instead of medium.alpha_power, as pointed out by @cldonovan.

After the bug fix, the correct error message was displayed when medium.alpha_coeff was set to an invalid value, verified by running an example with altered medium.alpha_coeff both before and after the fix.

Thanks to @cldonovan for spotting the issue and suggesting the correct fix! 🚀✨

`medium.alpha_coeff` was incorrectly checked instead of `medium.alpha_power`.

Thanks to @cldonovan for spotting the issue and suggesting the correct fix!
@stellaprins stellaprins requested a review from bencox July 18, 2025 15:05
@stellaprins stellaprins self-assigned this Jul 18, 2025
@stellaprins stellaprins added the bug Something isn't working label Jul 18, 2025
@stellaprins stellaprins marked this pull request as ready for review July 18, 2025 15:14
@bencox bencox merged commit e70287a into ucl-bug:main Jul 22, 2025
1 check passed
@stellaprins stellaprins deleted the sp/15-bug_medium_alpha_power_input_checking branch July 28, 2025 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: input checking gives misleading message

2 participants