19 restrainer = IMP.restrainer.Main()
22 rep = restrainer.add_representation(
24 rsr = restrainer.add_restraint(
33 model = restrainer.get_model()
36 protein1_hierarchy = rep.get_imp_hierarchy_by_id(
'Protein1')
39 root_hierarchy = rep.get_root_imp_hierarchy()
42 protein1_rb = rsr.get_rigid_body_by_id(
"Protein1")
45 rbs = rsr.get_all_rigid_bodies()
Rotation3D get_random_rotation_3d(const Rotation3D ¢er, double distance)
Pick a rotation at random near the provided one.
See IMP.restrainer for more information.
Vector3D get_random_vector_in(const Cylinder3D &c)
Generate a random vector in a cylinder with uniform density.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.