IMP  2.1.1
The Integrative Modeling Platform
setup.py
1 ## \example kernel/setup.py
2 # Standard setup code.
3 
4 import IMP.core
5 
6 
7 def create_model_and_particles():
8  m = IMP.kernel.Model()
9  ps = [IMP.kernel.Particle(m) for i in range(0, 100)]
11  IMP.algebra.Vector3D(10, 10, 10))
12  for p in ps:
15  d.set_coordinates_are_optimized(True)
17  return (m, sc)
Vector3D get_random_vector_in(const Cylinder3D &c)
Generate a random vector in a cylinder with uniform density.
static XYZR setup_particle(kernel::Model *m, ParticleIndex pi)
Definition: XYZR.h:48
Class to handle individual model particles.
See IMP.core for more information.
Class for storing model, its restraints, constraints, and particles.