Test for beta scorefunction discrepancy with clone and minimization. #544
+129
−0
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.
@Bloeci noticed a substantial scoring discrepancy when working with poses which had been cloned and then minimized. It looks like there's an issue when you score the pose before cloning and then go into minimization. -- Notably, this seems to only be the case for beta & beta_nov16 energy functions.
I've tracked this down to some issue with the Energy Graph. If you reset the energy graph (basically delete and then re-add the EnergyEdges) this discrepancy goes away. -- I can't understand why, though, because it goes away even if you put all the energy edges back the way they were. I'm also not sure how/why that would be interacting with the beta_nov16 specifically.
Lacking the ability to take this any further, I've encapsulated things into a unit test. Hopefully this will help someone to investigate further.
(P.S. It looks like only the errant score-before-cloned minimization is resulting in the "Inaccurate G" messages -- which may or may lead into the discrepancy.)