This demonstrates reading in an existing Modeller model, and converting the Modeller restraints (both static and dynamic) into equivalent IMP restraints.
   14 e = modeller.Environ()
 
   15 e.edat.dynamic_sphere = 
True 
   16 e.libs.topology.read(
'${LIB}/top_heav.lib')
 
   17 e.libs.parameters.read(
'${LIB}/par.lib')
 
   18 modmodel = modeller.Model(e)
 
   19 modmodel.build_sequence(
'GGCC')
 
   21 sel = modeller.Selection(modmodel)
 
   22 modmodel.restraints.make(sel, restraint_type=
'STEREO', spline_on_site=
False)
 
   28 protein = loader.load_atoms(m)
 
   33     list(loader.load_static_restraints())
 
   34     + list(loader.load_dynamic_restraints()))
 
   36 print(sf.evaluate(
False))