26o.set_scoring_function(sf)
29for pi0
in lc.get_contents():
30 for pi1
in lc.get_contents():
35print(
"The maximum distance is " + str(max))
41for pi0
in lc.get_contents():
42 for pi1
in lc.get_contents():
47print(
"Afterwards, the maximum distance is " + str(max))
Class for storing model, its restraints, constraints, and particles.
Store a list of ParticleIndexes.
Simple conjugate gradients optimizer.
Restrain the diameter of a set of points.
Upper bound harmonic function (non-zero when feature > mean).
Create a scoring function on a list of restraints.
A decorator for a particle with x,y,z coordinates.
Various classes to hold sets of particles.
Basic functionality that is expected to be used by a wide variety of IMP users.
XYZRs create_xyzr_particles(Model *m, unsigned int num, Float radius, Float box_side=10)
Create a set of particles with random coordinates.
double get_distance(const Surface &s, const XYZR &d)
Get distance from sphere to surface.
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.