-
Notifications
You must be signed in to change notification settings - Fork 18
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 ordering bug in MatrixProvider class #1512
🩹 Fix ordering bug in MatrixProvider class #1512
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1512 +/- ##
=======================================
- Coverage 88.6% 88.6% -0.1%
=======================================
Files 107 107
Lines 5128 5134 +6
Branches 962 965 +3
=======================================
+ Hits 4544 4549 +5
- Misses 468 469 +1
Partials 116 116 ☔ View full report in Codecov by Sentry. |
🧙 Sourcery has finished reviewing your pull request! Tips
|
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.
We've reviewed this pull request using the Sourcery rules engine. If you would also like our AI-powered code review then let us know.
Quality Gate passedIssues Measures |
The `PFIDMegacomplex` is a megacomplex used for fitting perturbed free induction decay as described in Hamm 1995: https://doi.org/10.1016/0301-0104(95)00262-6 *👌 Guard against zero standard errors for fixed parameters *🧪👌 Add irf attribute to PFIDDatasetModel and update pfid unit tests - OneOscillationWithIrf - OneOscillationWithSequentialModel * ♻️Refactor pfid_megacomplex to be always index dependent * 📚 Added change to changelog * 🩹 Modify unit test to be more suspectiable to orderin bug (fixed in PR #1512 ) * 🧪 Added test to catch AttributeError validating bad pfid model definition * 🩹 Fix AttributeError validating bad pfid model definition * 🧰 Remove pre-commit from dev dependencies Co-authored-by: Sebastian Weigand <[email protected]> Co-authored-by: Jörn Weißenborn <[email protected]> Co-authored-by: Ivo van Stokkum <[email protected]>
In the call to combine_megacomplex_matrices the matrices would be reordered independent of their labels resulting in a combined matrix that would be ordered differently than expected. This issue was specifically found in the case of multiple types of different megacomplexes.
This bug fix was orginally part of #1510 but was seperated out because of its broader scope.
Change summary
Checklist