This example shows using two rigid bodies and doing excluded volume with them.
12 def create_representation():
29 evr.set_maximum_score(.01)
34 def create_discrete_states(m,helices):
40 for dx
in range(0,15):
49 def create_sampler(m, rs, pst):
60 s.set_assignments_table(states)
61 s.set_subset_filter_tables(filters)
64 def display(m,helices,name):
67 for i,h
in enumerate(helices):
73 print "creating representation"
74 (m,helices)=create_representation()
76 print "creating score function"
79 print "creating discrete states"
80 pst=create_discrete_states(m,helices)
82 print "creating sampler"
83 s=create_sampler(m, rs, pst)
84 m.set_log_level(IMP.base.SILENT)
89 print "found ", cs.get_number_of_configurations(),
"solutions"
91 for i
in range(cs.get_number_of_configurations()):
92 cs.load_configuration(i)
95 print "** solution number:",i,
" is:",ss
96 display(m,helices,
"sol_"+str(i)+
".pym")