18 sys.argv,
"Use the IMP::misc::DecayPairContainerOptimizerState to gradually break the bonds in a bd simulation")
38 for i
in range(0, np):
43 d.set_coordinates_are_optimized(
True)
51 for i
in range(0, nb):
52 pp = random.sample(ps, 2)
53 if pp
not in bds
and [pp[1], pp[0]]
not in bds:
58 dos.set_period(period)
59 dos.set_log_level(IMP.base.SILENT)
68 dos.get_output_container(),
75 bd.set_maximum_time_step(1000)
76 bd.set_scoring_function(rs + [ev])
77 bd.add_optimizer_state(dos)
81 rmf = RMF.create_rmf_file(fn)
82 print "setting up file"
88 os.set_period(max(steps / 100, 1))
89 bd.add_optimizer_state(os)
Applies a SingletonScore to each Singleton in a list.
A harmonic upper bound on the distance between two spheres.
void add_restraints(RMF::NodeHandle fh, const kernel::Restraints &hs)
See IMP.container for more information.
Upper bound harmonic function (non-zero when feature > mean)
See IMP.misc for more information.
void set_log_level(LogLevel l)
Set the current global log level.
bool get_bool_flag(std::string name)
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Maintain a pair container with a decaying list of pairs.
See IMP.base for more information.
Score particles based on how far outside a box they are.
static XYZR setup_particle(kernel::Model *m, ParticleIndex pi)
Simple Brownian dynamics simulator.
static Hierarchy setup_particle(kernel::Model *m, kernel::ParticleIndex pi, kernel::ParticleIndexesAdaptor children=kernel::ParticleIndexesAdaptor())
static Colored setup_particle(kernel::Model *m, ParticleIndex pi, Color color)
Color get_display_color(unsigned int i)
void add_hierarchies(RMF::NodeHandle fh, const atom::Hierarchies &hs)
Class to handle individual model particles.
void add_geometries(RMF::NodeHandle parent, const display::GeometriesTemp &r)
static Mass setup_particle(kernel::Model *m, ParticleIndex pi, Float mass)
See IMP.example for more information.
Prevent a set of particles and rigid bodies from inter-penetrating.
static Diffusion setup_particle(kernel::Model *m, ParticleIndex pi, Float D)
Strings setup_from_argv(const Strings &argv, std::string description, std::string positional_description, int num_positional)
See IMP.display for more information.
See IMP.atom for more information.
See IMP.rmf for more information.
Applies a PairScore to each Pair in a list.
Class for storing model, its restraints, constraints, and particles.