IMP logo
IMP Reference Guide  2.6.2
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.Model()
9  ps = [IMP.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)
static XYZR setup_particle(Model *m, ParticleIndex pi)
Definition: XYZR.h:48
Vector3D get_random_vector_in(const Cylinder3D &c)
Generate a random vector in a cylinder with uniform density.
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:72
Store a list of ParticleIndexes.
Basic functionality that is expected to be used by a wide variety of IMP users.
VectorD< 3 > Vector3D
Definition: VectorD.h:395
Class to handle individual model particles.
Definition: Particle.h:37