Repository navigation
perf: warm-start the pH grid of the ratio uncertainty check - #340
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #340 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 148 148
Lines 17507 17515 +8
Branches 3550 3550
=========================================
+ Hits 17507 17515 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
rafatahmed
marked this pull request as ready for review
November 26, 2026 23:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #339
Stacked on #338 (base branch
perf/aqueous-solver; after #338 merges, retarget tomain).refine_phsolved every pH point from a cold start. Each point of a scenario now starts from the nearest pH already solved for the same totals, through the existingstart=argument (a failed warm start already falls back to the cold start). The two uncertainty checks use it (ratio_analysis_uncertainty,ratio_uncertainty). The nominal check inratio_verificationstays cold, so the reported nominal values do not change.Results are not bit-identical. The warm state agrees with the cold one within the solver tolerance:
Evidence
test_feasible_1_0alone about 250 s on main, 122 s with perf: faster aqueous equilibrium solve, results bit-identical #338, 50 s with this change.outputs/test-runs/2026-11-27-perf-warm-start/, local).tests/test_ph_warm_start.py: nearest-pH seeding and agreement with cold solves.