diff options
author | Thomas Jourdan <b.vehikel@googlemail.com> | 2009-12-06 12:40:41 (GMT) |
---|---|---|
committer | Thomas Jourdan <b.vehikel@googlemail.com> | 2009-12-06 12:40:41 (GMT) |
commit | 7ce7155dead3893e572006588fc342fb3af7ec60 (patch) | |
tree | 2bb234d6d159aa797767bf1ceccea53117dc773a /ep_positionconstraint_none.py | |
parent | bcde11455168a07de8a3b17f2a4d77ce8931e75d (diff) |
Layers are now arranged as a tree data structure.
Diffstat (limited to 'ep_positionconstraint_none.py')
-rw-r--r-- | ep_positionconstraint_none.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ep_positionconstraint_none.py b/ep_positionconstraint_none.py index 31dd0ff..b34736d 100644 --- a/ep_positionconstraint_none.py +++ b/ep_positionconstraint_none.py @@ -16,7 +16,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA import random -import ka_random +import model_random import model_locus class NonePositionConstraint(model_locus.Locus): @@ -44,6 +44,4 @@ class NonePositionConstraint(model_locus.Locus): """Make small random changes in x- and y-position. post: len(__return__) == 2 """ - xp = x_pos + ka_random.jitter(0.2) - yp = y_pos + ka_random.jitter(0.2) - return xp, yp + return x_pos + model_random.jitter(0.2), y_pos + model_random.jitter(0.2) |