In this example a pdb is converted into a multiresolution model, somewhat painfully.
5 from __future__
import print_function, division
26 def recursive_approximation(res):
27 print(
"approximating", res)
32 me = recursive_approximation(res[0:lr // 4])\
33 + recursive_approximation(res[lr // 4: lr // 2])\
34 + recursive_approximation(res[lr // 2: 3 * lr // 4])\
35 + recursive_approximation(res[3 * lr // 4: lr])
55 me = recursive_approximation(res[0:lr // 4])\
56 + recursive_approximation(res[lr // 4: lr // 2])\
57 + recursive_approximation(res[lr // 2: 3 * lr // 4])\
58 + recursive_approximation(res[3 * lr // 4: lr])
64 rmf = RMF.create_rmf_file(fn)