-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fixes Qmin Qmax should be included after masking. Not the current behavior. #47
Conversation
sbillinge
commented
Oct 30, 2024
- mask on reciprocal space is greater than not greater than equal
- news
@cadenmyers13 @bobleesj please could you help me with this one. Figure out why it is failing and the fix? |
Since the voxels at |
The parameter |
Thanks for this @cadenmyers13 . Actually, the problem is my fault because I am not practicing what I teach! Instead of me fixing the code to give the right behavior, which causes the test to fail and asking you to fix it. I should have modified the test to give the behavior that I wanted (causing it to fail) and then asked you to fix the code. My apologies on that. Please could you pretend that I didn't do that, and come up with the right tests for the behavior that we want to replace existing tests? It is always important to have tests first fail and then pass (it may be passing because it is not working as intended). So my suggestion is to set the code back to |
@sbillinge yes will note that |
@sbillinge lesson here: During refactoring, modify the existing tests to reflect the new expected behavior. Expect them to fail initially. Then, update the code to make the tests pass. |
@sbillinge got it. @bobleesj will let you know if I need help |
@sbillinge a bit more context in the PR title would be helpful too, although the commit msg is clear. |
sorry, my fault. I have fixed it. |
@sbillinge To me, it seems like we want to change the test data rather than the test itself. The test is functioning how we want (by comparing slices of the array when cutoffs are applied). Since the test data is static we are comparing against a result we don't want. Below, the top image is what we want however the bottom image is what the test data shows. |
@sbillinge Because this test data is used elsewhere in the test file its causing problems when I change it... working on a fix |
closing. Replaced by #63 |