aboutsummaryrefslogtreecommitdiff
path: root/behaviors
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2010-12-26 14:38:25 -0500
committerGravatar rcoh <rcoh@mit.edu>2010-12-26 14:38:25 -0500
commitbbb31f8213d61b7c91d8b17c543d12491dd2df1b (patch)
tree587be5cb3b64fb5797dc311ac082e3e7503635c2 /behaviors
parentb09a41f0891c041ad4fcecca59d03f52fe9ee9e8 (diff)
a bugfix in APL. Support and a unit test for behavior inheritance. It now happens automatically
when the config is loaded. Simply use Config.loadConfigFile(fileName) to leverage the functionality.
Diffstat (limited to 'behaviors')
-rw-r--r--behaviors/AllPixelsLeft.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/behaviors/AllPixelsLeft.py b/behaviors/AllPixelsLeft.py
index 0c66f2f..e1f4080 100644
--- a/behaviors/AllPixelsLeft.py
+++ b/behaviors/AllPixelsLeft.py
@@ -5,6 +5,5 @@ class AllPixelsLeft(Behavior):
def processResponse(self, sensorInputs, recursiveInputs):
for sensory in sensorInputs:
xLoc = sensory['Location'][0]
- if type(xLoc) == type(tuple()):
sensory['Location'] = '[{x}<' + str(xLoc) + ']'
return (sensorInputs, recursiveInputs)