IMP
2.2.0
The Integrative Modeling Platform
IMP Mainpage
All IMP Modules
Related Pages
Modules
Namespaces
Classes
Files
Examples
Indexes
File List
File Members
pair_restraint.py
1
## \example core/pair_restraint.py
2
# Restrain the distance between a pair of particles.
3
#
4
5
import
IMP.example
6
(m, c) = IMP.example.create_model_and_particles()
7
8
uf =
IMP.core.Harmonic
(0, 1)
9
df =
IMP.core.DistancePairScore
(uf)
10
r =
IMP.core.PairRestraint
(df, (c.get_particle(0), c.get_particle(1)))
11
m.add_restraint(r)
IMP::core::DistancePairScore
Definition:
core/DistancePairScore.h:22
IMP::example
See IMP.example for more information.
Definition:
complex_assembly.h:16
IMP::core::PairRestraint
Applies a PairScore to a Pair.
Definition:
PairRestraint.h:29
IMP::core::Harmonic
Harmonic function (symmetric about the mean)
Definition:
core/Harmonic.h:24