IMP
2.0.1
The Integrative Modeling Platform
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
container/connectivity.py
Shows how to use and visualize the IMP::misc::ConnectingPairContainer.
1
## \example container/connectivity.py
2
## Shows how to use and visualize the IMP::misc::ConnectingPairContainer.
3
4
import
IMP.container
5
import
IMP.display
6
7
m=
IMP.Model
()
8
ds=
IMP.core.create_xyzr_particles
(m, 20, .1)
9
sc=
IMP.container.ListSingletonContainer
(ds)
10
cpc=
IMP.container.ConnectingPairContainer
(sc, .1)
11
m.evaluate(
False
)
12
pg=
IMP.core.EdgePairsGeometry
(cpc)
13
w=
IMP.display.ChimeraWriter
(
"pairs.py"
)
14
w.add_geometry(pg)
15
print
pg.get_name()
16
del w