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 some more idea of what is going on.
20 [(ps[i[0]], ps[i[1]])
for i
in [(0, 1), (1, 2)]])
21 print [(p[0].get_name(), p[1].get_name())
for p
in lpc.get_particle_pairs()]
24 r.set_maximum_score(.1)
31 pst.set_particle_states(p, space)
33 m.set_log_level(IMP.base.SILENT)
40 print "Unable to display graph using 'dot'"
42 rc.add_restraints([r])
48 name = IMP.create_temporary_file_name(
"assignments",
".hdf5")
49 root = RMF.HDF5.create_file(name)
54 def get_assignments(vertex):
55 on = mt.get_out_neighbors(vertex)
56 ss = mt.get_vertex_name(vertex)
57 print "computing assignments for", ss
59 dataset = root.add_child_index_data_set_2d(ssn)
60 dataset.set_size([0, len(ss)])
62 dataset, ss, pst.get_particles(), ssn)
68 (ss0, a0) = get_assignments(on[0])
69 (ss1, a1) = get_assignments(on[1])
71 print ss, mine.get_number_of_assignments()
77 all = get_assignments(mt.get_vertices()[-1])
78 all[1].set_was_used(
True)
80 print 'try: h5dump', name