-
Notifications
You must be signed in to change notification settings - Fork 238
Allow Resurrection from Failed Filter Simulations #1371
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1371 +/- ##
==========================================
- Coverage 42.18% 42.18% -0.01%
==========================================
Files 172 172
Lines 28001 28005 +4
Branches 5503 5503
==========================================
Hits 11813 11813
- Misses 15393 15397 +4
Partials 795 795
Continue to review full report at Codecov.
|
rmgpy/rmg/main.py
Outdated
@@ -735,9 +736,14 @@ def execute(self, **kwargs): | |||
simulatorSettings = simulatorSettings, | |||
conditions = self.rmg_memories[index].get_cond() | |||
) | |||
self.updateReactionThresholdAndReactFlags( | |||
self.updateReactionThresholdAndReactFlags( |
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.
I think here we're capturing exceptions from simulate()
. Perhaps updateReactionThresholdAndReactFlags
should be relocated to an else
clause after the try-except?
This allows model runs to continue after failed filter simulations. However, its worth noting that since the filter simulation failed nothing is reacted until a filter simulation succeeds.
eb54f3f
to
1c6066e
Compare
Ok, I've made that change is this ready to merge? |
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.
Thanks!
This adds a try except that allows model runs to continue after failed filter simulations. I believe this caused #1367 and #1258. It worked as expected on the example in #1367. However, its worth noting that nothing is reacted until a regular or a filter simulation succeeds and changes the react flags. In the example in #1367 the run doesn't recover which results in the resurrection process consuming species from the edge until the edge is empty and then crashing.