I can't reproduce the error.
>>> import IMP.core >>> m=IMP.Model() >>> p0= IMP.core.XYZ.setup_particle(IMP.Particle(m)) >>> p1= IMP.core.XYZ.setup_particle(IMP.Particle(m)) >>> dps= IMP.core.DistancePairScore(IMP.core.Linear(0,1)) >>> lpc= IMP.core.ListPairContainer() >>> lpc.add_particle_pair(IMP.ParticlePair(p0.get_particle(), p1.get_particle())) 0 >>> pr= IMP.core.PairsRestraint(dps, lpc) >>> ip= pr.get_interacting_particles() >>> len(ip) 1 >>> len(ip[0]) 2
On Sep 6, 2009, at 11:13 PM, Keren Lasker wrote:
> hi, > > quick question: > > Given two proteins, represented as rigid bodies. > Constructing a PairsRestraint on the two rigid bodies, what should > be the result on the get_interacting_particles() ? > for some reason I am getting 0, also after evaluating the restraint. > I would have expected to get one list with two entries ( the two > rigid bodies). > what am i doing wrong ? > > thank you, > Keren. > _______________________________________________ > IMP-dev mailing list > IMP-dev@salilab.org > https://salilab.org/mailman/listinfo/imp-dev