Hi Harianto,

one simple solution would be to turn the restraint off
by setting its weight to zero:

r.set_weight(0.0)

Riccardo


On Sat, Mar 15, 2014 at 2:35 AM, harianto tjong <htjong@usc.edu> wrote:
Dear IMP users or developers,

I run the code example http://salilab.org/imp/2.1.1/doc/html/core_2restrain_diameter_8py-example.html
It runs smoothly.

But when I add at the end of the code:
m.remove_restraint(r)
then it will be Segmentation fault.

Anyone knows how to remove this restraint appropriately?
Thank you.

Best,
Harianto.

_______________________________________________
IMP-users mailing list
IMP-users@salilab.org
https://salilab.org/mailman/listinfo/imp-users