-
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
🩹 Bugfix Use normalized initial_concentrations in result creation for decay megacomplex #927
🩹 Bugfix Use normalized initial_concentrations in result creation for decay megacomplex #927
Conversation
Benchmark is done. Checkout the benchmark result page. Benchmark diff v0.5.0 vs. mainParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
Benchmark diff main vs. PRParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
|
Codecov Report
@@ Coverage Diff @@
## main #927 +/- ##
=====================================
Coverage 85.1% 85.1%
=====================================
Files 85 85
Lines 4799 4799
Branches 921 921
=====================================
Hits 4085 4085
Misses 562 562
Partials 152 152
Continue to review full report at Codecov.
|
Before putting in this hot-fix, @ism200 has requested we dig a little deeper (see #932 ) to ensure that the normalization is correct under all conditions (in particular for the simple models introduced in #860 ). Also, when making any changes to a_matrix we might also want to take into account its use in |
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.
Changed requested following outcome of investigation in #932 .
Backport of bugfix glotaran#927 discovered in PR glotaran#860 It was [found](glotaran#860 (comment)) in glotaran#860 that the a_matrix when calculated for result saving was calculated without normalized initial_concentrations while the calculation for the optimization was (correctly) using the normalized version. Fixing this bug in glotaran#927 then breaks result consistency checking for some case studies, thus requiring backporting of this bugfix to the 0.4 maintenance branch which we continue to use for result/consistency checking.
- 🩹🚧 Backport of bugfix glotaran#927 discovered in PR glotaran#860 related to initial_concentration normalization when saving results (glotaran#934).
- 🩹🚧 Backport of bugfix glotaran#927 discovered in PR glotaran#860 related to initial_concentration normalization when saving results (glotaran#935).
…ncy checking purposes (#935) * 🩹🚧 Backport of bugfix Backport of bugfix #927 discovered in PR #860 It was [found](#860 (comment)) in #860 that the a_matrix when calculated for result saving was calculated without normalized initial_concentrations while the calculation for the optimization was (correctly) using the normalized version. Fixing this bug in #927 then breaks result consistency checking for some case studies, thus requiring backporting of this bugfix to the 0.4 maintenance branch which we continue to use for result/consistency checking. * 🚀🚧 v0.4.2 Maintenance release - 🩹🚧 Backport of bugfix #927 discovered in PR #860 related to initial_concentration normalization when saving results (#935). * 🚇🚧 Updated 'gold standard' result comparison reference Updated pyglotaran-examples result-comparison branch for pyglotaran v0.4.2 Note: comments in PR #936 provide explanation for a small test deviation in the results comparison check for this PR.
d34e844
to
9a97204
Compare
* 🚇Update test_result_consistency Update float_resolution for comparison of spectral values. Should resolve issues with result comparison signaled in #927 * 🚇👌 Further refinement of test_result_consistency Refine calculation of epsilon for residual check Should resolve issues with result comparison signaled in #896 * 🚇👌 Failing tests now also show the tolerances used for the comparison
🚇Update test_result_consistency (glotaran#936) * 🚇Update test_result_consistency Update float_resolution for comparison of spectral values. Should resolve issues with result comparison signaled in glotaran#927 * 🚇👌 Further refinement of test_result_consistency Refine calculation of epsilon for residual check Should resolve issues with result comparison signaled in glotaran#896 * 🚇👌 Failing tests now also show the tolerances used for the comparison d2bff4
…938) * 🚧 Forward port of #936 test_result_consistency 🚇Update test_result_consistency (#936) * 🚇Update test_result_consistency Update float_resolution for comparison of spectral values. Should resolve issues with result comparison signaled in #927 * 🚇👌 Further refinement of test_result_consistency Refine calculation of epsilon for residual check Should resolve issues with result comparison signaled in #896 * 🚇👌 Failing tests now also show the tolerances used for the comparison d2bff4 * 📚 Forward port changelog from v0.4 maintenance branch
9a97204
to
2d84071
Compare
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 0.03%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
Kudos, SonarCloud Quality Gate passed!
|
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 👍
- 🩹🚧 Backport of bugfix 🩹 Bugfix Use normalized initial_concentrations in result creation for decay megacomplex #927 - 📚 Updated Readme (PyPI badge link, Discord URL, DOI) - 📚 Updated Changelog to reflect changes - Follow up on: 🚀🩹 v0.4.2 release preparation and bugfix backport for result consistency checking purposes #935).
⬆️ Update version number to 0.5.1 Prepare patch release fixing two bugs: - 🩹 Bugfix Use normalized initial_concentrations in result creation for decay megacomplex (glotaran#927) - 🩹 Fix save_result crashes on Windows if input data are on a different drive than result (glotaran#931)
⬆️ Update version number to 0.5.1 Prepare patch release fixing two bugs: - 🩹 Bugfix Use normalized initial_concentrations in result creation for decay megacomplex (glotaran#927) - 🩹 Fix save_result crashes on Windows if input data are on a different drive than result (glotaran#931)
Change summary
Checklist
Closes issues
Closes #926, #932