-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix bug in rabi 2D fit #997
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #997 +/- ##
==========================================
- Coverage 97.56% 97.50% -0.06%
==========================================
Files 123 123
Lines 9714 9714
==========================================
- Hits 9477 9472 -5
- Misses 237 242 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
|
I believe the best approach (in this and other cases) is truly a closure test: generate the data manually, as you expect they should be, with little or no noise (to make the fit simpler) and check that the fit is able to determine the parameters used in the data generation. |
Thanks for the approvals. Before merging I want to add a test following @alecandido's suggestion. |
That's a correct approach, and I should encourage it. However, if this is a bug fix, it may be more practical to just this PR as it is, and lift the suggestion to an issue, such that the test can be introduced as soon as there will be resources available to do that (i.e. decoupling it from the urgency of the bug fix itself). |
I have opened #1000 regarding the test issue, so we can merge this PR |
Closes #991.
I would like to add a test to verify that the code works properly.
I don't know if this is feasible unless we use some regressions.
Checklist:
master
0.1
main