aboutsummaryrefslogtreecommitdiff
path: root/behaviors/ModifyParam.py
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-02-13 16:03:39 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-02-13 16:03:39 -0500
commit6e0e6869a5ee1e4963071a18f24aa4dfdd442689 (patch)
tree59dfe233e69f331afe3be9137fe5638f359e1f56 /behaviors/ModifyParam.py
parentf6dd5ab92949843d2fb163e2d84f19e824a291dc (diff)
Added a circle behavior to make circles. Added ContinuousCenterInput to do what it says. Modified
SimpleMapper a bit.
Diffstat (limited to 'behaviors/ModifyParam.py')
-rw-r--r--behaviors/ModifyParam.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/behaviors/ModifyParam.py b/behaviors/ModifyParam.py
index 0ef3a60..ebcb98f 100644
--- a/behaviors/ModifyParam.py
+++ b/behaviors/ModifyParam.py
@@ -30,6 +30,8 @@ class ModifyParam(Behavior):
#TODO: move elsewhere
paramOp = paramOp.replace('{y}', "behaviorInput['Location'][1]")
paramOp = paramOp.replace('{x}', "behaviorInput['Location'][0]")
+ if eval(paramOp) == None:
+ import pdb; pdb.set_trace()
behaviorInput[paramName] = eval(paramOp)
if paramType == 'Sensor': #return accordingly
return (searchSet, recursiveInputs)