Use the IMP::misc::DecayPairContainerOptimizerState to gradually break the bonds in a bd simulation.
16 IMP.base.setup_from_argv(sys.argv,
"Use the IMP::misc::DecayPairContainerOptimizerState to gradually break the bonds in a bd simulation")
41 d.set_coordinates_are_optimized(
True)
50 pp= random.sample(ps, 2)
51 if pp
not in bds
and [pp[1], pp[0]]
not in bds:
56 dos.set_period(period)
57 dos.set_log_level(IMP.base.VERBOSE)
65 dos.get_output_container(),
77 bd.set_maximum_time_step(1000)
78 bd.set_scoring_function(rs+[ev])
79 bd.add_optimizer_state(dos)
83 rmf= RMF.create_rmf_file(fn)
84 print "setting up file"
90 os.set_period(max(steps/100, 1))
91 bd.add_optimizer_state(os)