aboutsummaryrefslogtreecommitdiff
path: root/behaviors/ModifyParam.py
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-02-16 18:20:36 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-02-16 18:20:36 -0500
commit2df9e408a0ff74539862c4a4e562a878cc11a329 (patch)
treef9388ceb03bf4fe5166c2c474b68e08733a4a54a /behaviors/ModifyParam.py
parent83242972c09032eb89dd547f3ff3c4dcc2693555 (diff)
Code cleanup. Made Oval behavior (circle with h/w).
Diffstat (limited to 'behaviors/ModifyParam.py')
-rw-r--r--behaviors/ModifyParam.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/behaviors/ModifyParam.py b/behaviors/ModifyParam.py
index ebcb98f..6f81383 100644
--- a/behaviors/ModifyParam.py
+++ b/behaviors/ModifyParam.py
@@ -1,6 +1,5 @@
from operationscore.Behavior import *
import math
-import pdb
#Class to perform a given operation on some element of an argDict. Designed to be used a recursive hook, but can serve sensor-based functions as well. Specify ParamType (Sensor or Recurse), ParamName, and ParamOp, (a valid python statement with the old value represented as {val})
class ModifyParam(Behavior):
"""ModifyParam is a powerful class to perform an action on a specified key in the Argument
@@ -30,8 +29,6 @@ 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)