20 for i
in range(0, np):
22 p.add_attribute(ik, i)
30 print "without", [(x[0].get_name(), x[1].get_name())
for x
in cpc.get_particle_pairs()]
36 IMP.PairPredicate.__init__(self,
"ConsecutiveFilter%1%")
38 def get_value(self, pp):
39 diff = pp[0].get_value(ik) - pp[1].get_value(ik)
40 if diff == -1
or diff == 1:
44 def do_get_inputs(self, m, pis):
45 return [m.get_particle(i)
for i
in pis]
47 def do_show(self, out):
49 f = ConsecutiveFilter()
50 cpc.add_pair_filter(f)
52 print "with", [(x[0].get_name(), x[1].get_name())
for x
in cpc.get_particle_pairs()]
See IMP.container for more information.
void set_log_level(LogLevel l)
Set the current global log level.
Return all close unordered pairs of particles taken from the SingletonContainer.
Vector3D get_random_vector_in(const Cylinder3D &c)
Generate a random vector in a cylinder with uniform density.
static XYZR setup_particle(kernel::Model *m, ParticleIndex pi)
Store a kernel::ParticleIndexes.
Abstract predicate function.
Class to handle individual model particles.
See IMP.core for more information.
See IMP.algebra for more information.
Class for storing model, its restraints, constraints, and particles.