This module contains the setup and task functions used by local_distance.py.
10 """Create a Model containing two XYZ particles linked by a harmonic
11 distance restraint, one fixed at the origin. Return the Model and
12 the free XYZ particle."""
28 def __init__(self, dist):
30 def __call__(self, m, d):
31 """Place the free XYZ particle at the specified distance from the
32 origin. Return the distance and the model's score. Note that the
33 input parameters to this method (m and d) are those returned by
34 the setup function above."""
36 return (self.dist, m.evaluate(
False))