IMP  2.2.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
Store a kernel::ParticleIndexes.
Class to handle individual model particles.
See IMP.core for more information.
VectorD< 3 > Vector3D
Definition: VectorD.h:395
Class for storing model, its restraints, constraints, and particles.
Definition: kernel/Model.h:72