This example shows how to use the multiresolution support available in IMP.atom via the IMP.atom.Resolution decorator and IMP.atom.Selection
5 from __future__
import print_function, division
25 def recursive_approximation(res):
26 print(
"approximating", res)
31 me = recursive_approximation(res[0:lr // 4])\
32 + recursive_approximation(res[lr // 4: lr // 2])\
33 + recursive_approximation(res[lr // 2: 3 * lr // 4])\
34 + recursive_approximation(res[3 * lr // 4: lr])
54 me = recursive_approximation(res[0:lr // 4])\
55 + recursive_approximation(res[lr // 4: lr // 2])\
56 + recursive_approximation(res[lr // 2: 3 * lr // 4])\
57 + recursive_approximation(res[3 * lr // 4: lr])
63 rmf = RMF.create_rmf_file(fn)