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)
Ints get_index(const kernel::ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
void setup_as_approximation(Hierarchy h)
bool get_bool_flag(std::string name)
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file.
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
static Hierarchy setup_particle(kernel::Model *m, kernel::ParticleIndex pi, kernel::ParticleIndexesAdaptor children=kernel::ParticleIndexesAdaptor())
Hierarchies get_by_type(Hierarchy mhd, GetByType t)
void add_hierarchies(RMF::NodeHandle fh, const atom::Hierarchies &hs)
Class to handle individual model particles.
A decorator for a residue.
Strings setup_from_argv(const Strings &argv, std::string description, std::string positional_description, int num_positional)
Functionality for loading, creating, manipulating and scoring atomic structures.
void read_pdb(base::TextInput input, int model, Hierarchy h)
Hierarchies get_leaves(const Selection &h)
Support for the RMF file format for storing hierarchical molecular data and markup.
void add_bonds(Hierarchy d, const ForceFieldParameters *ffp=get_all_atom_CHARMM_parameters())
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
Class for storing model, its restraints, constraints, and particles.