24 p = m.add_particle(
"p%d" % i)
25 m.add_attribute(ik, p, i)
33print(
"without", [(m.get_particle_name(x[0]), m.get_particle_name(x[1]))
34 for x
in cpc.get_contents()])
40 super().__init__(
"ConsecutiveFilter%1%")
42 def get_value_index(self, m, pp):
43 diff = m.get_attribute(ik, pp[0]) - m.get_attribute(ik, pp[1])
44 if diff == -1
or diff == 1:
48 def do_get_inputs(self, m, pis):
49 return [m.get_particle(i)
for i
in pis]
51 def do_show(self, out):
55f = ConsecutiveFilter()
58print(
"with", [(m.get_particle_name(x[0]), m.get_particle_name(x[1]))
59 for x
in cpc.get_contents()])
Class for storing model, its restraints, constraints, and particles.
Abstract predicate function.
Return all close unordered pairs of particles taken from the SingletonContainer.
Store a list of ParticleIndexes.
static XYZR setup_particle(Model *m, ParticleIndex pi)
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
VectorD< D > get_random_vector_in(const BoundingBoxD< D > &bb)
Generate a random vector in a box with uniform density.
Various classes to hold sets of particles.
Basic functionality that is expected to be used by a wide variety of IMP users.
void set_log_level(LogLevel l)
Set the current global log level.
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.