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

Re: [IMP-dev] Restraint::get_particles()



You should read the emails on imp-dev occasionally :-)

Anyway, that method should definitely not be made public as it isn't guaranteed to do anything useful. For some of the restraints (NonbondedRestraints) it returns nothing and for others, such as the PairListRestraint it globs together lots of particles which aren't actually interacting.

The best solution is probably to add a new virtual method get_interacting_pairs which returns a list of interacting particle pairs (since I think that is what you want). Or something similar. It would be quite easy to implement for existing restraints.


On Aug 18, 2008, at 12:44 PM, Keren Lasker wrote:

hi,

Frido and I are both using r->get_particles().
The function is protected, so in "our" copy we just changed
IMP_LIST(protected, Particle, particle, Particle*) to public.
However, now I am trying to add DOMINO to IMP - Ben could not compile
it .... ;)
DOMINO needs to know which particles are part of a restraint.
Would you mind changing the list to public?
and if not - do you have any solution ?

thank you,
Keren.
_______________________________________________
IMP-dev mailing list

https://salilab.org/mailman/listinfo/imp-dev