[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [IMP-users] Problems with installing IMP on Ubuntu 15.04



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_8py-example.html

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.