Run domino storing the intermediate and final results in an HDF5 database. This has the advantage that if you interrupt the run at any point, you have a list of everything computed so far and so can get a better idea of what is going on.
7 from __future__
import print_function
21 for x
in range(0, 3)])
25 m, [(ps[i[0]], ps[i[1]])
for i
in [(0, 1), (1, 2)]])
26 print([(m.get_particle_name(p[0]), m.get_particle_name(p[1]))
27 for p
in lpc.get_contents()])
29 r.set_maximum_score(.1)
36 pst.set_particle_states(m.get_particle(p), space)
38 m.set_log_level(IMP.SILENT)
45 print(
"Unable to display graph using 'dot'")
47 rc.add_restraints([r])
54 root = RMF.HDF5.create_file(name)
59 def get_assignments(vertex):
60 on = mt.get_out_neighbors(vertex)
61 ss = mt.get_vertex_name(vertex)
62 print(
"computing assignments for", ss)
64 dataset = root.add_child_index_data_set_2d(ssn)
65 dataset.set_size([0, len(ss)])
67 dataset, ss, pst.get_particles(), ssn)
73 (ss0, a0) = get_assignments(on[0])
74 (ss1, a1) = get_assignments(on[1])
76 print(ss, mine.get_number_of_assignments())
81 dataset, ss, pst.get_particles(), ssn))
86 all = get_assignments(mt.get_vertices()[-1])
87 all[1].set_was_used(
True)
89 print(
'try: h5dump', name)