IMP logo
IMP Reference Guide  2.6.0
The Integrative Modeling Platform
kernel/setup.py

Standard setup code.

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)