Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000299Rosetta[All Projects] Incorrect Resultspublic2013-08-12 13:102013-08-12 13:10
Reporterkhouli 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformAll platformsOSAnyOS VersionAny
Product Version 
Fixed in Version 
Summary0000299: Registering NeighborsByDistanceCalculator with same name as a removed calc creates bad neighbor entries
DescriptionRegistering 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"
Steps To ReproduceWith 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.
TagsNo tags attached.
Application(s) Affectedna
Command Line Usedna
Developer Options
Fixed in SVN Version
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2013-08-12 13:10 khouli New Issue


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker