3 Jun
2015
3 Jun
'15
3:37 p.m.
Hello,
I found the tutorial IMP2.4 that still use add_restraint attribute: (m, c) = IMP.example.create_model_and_particles() ps = IMP.core.DistancePairScore(IMP.core.HarmonicLowerBound(1, 1)) r = IMP.container.PairsRestraint(ps, IMP.container.ClosePairContainer(c, 2.0)) m.add_restraint(r) http://www.integrativemodeling.org/2.4.0/doc/html/kernel_2basic_optimization...
It is still convenient to use it while migrating from IMP 1.0 to 2.4, however "remove_restraint" won't work at all. Given the m.add_restraint(r), how can I achieve m.remove_restraint(r) in IMP 2.4?
Thank you.
Best, Harianto.