MantisBT - Rosetta
View Issue Details
0000299Rosetta[All Projects] Incorrect Resultspublic2013-08-12 13:102013-08-12 13:10
khouli 
 
normalminoralways
newopen 
All platformsAnyAny
 
 
na
na
0000299: Registering NeighborsByDistanceCalculator with same name as a removed calc creates bad neighbor entries
Registering a NeighborsByDistanceCalculator, using it, removing it, then register one with the same name. The new one has the neighbor values of the old one and doesn't recognize the need to update.

CalculatorFactory::Instance().register_calculator("myCalc", new NeighborsByDistanceCalculator(some_res) );

// run calc, fill vector of neighbors, do stuff...

CalculatorFactory::Instance().remove_calculator("myCalc");
CalculatorFactory::Instance().register_calculator("myCalc", new NeighborsByDistanceCalculator(other_res) );

// calculator now mapped to "myCalc" has neighbor entries from first calc mapped to "myCalc"
With a function called repeatedly in a loop that does the steps:

CalculatorFactory::Instance().register_calculator("myCalc", new NeighborsByDistanceCalculator(some_res) );
CalculatorFactory::Instance().remove_calculator("myCalc");
CalculatorFactory::Instance().register_calculator("myCalc", new NeighborsByDistanceCalculator(other_res) );

All calculators return the same vector of neighbors even for distant residues.
No tags attached.
Issue History
2013-08-12 13:10khouliNew Issue

There are no notes attached to this issue.