aboutsummaryrefslogtreecommitdiff
path: root/behaviors/AllPixelsLeft.py
blob: b22315647210c8c16e8c09f57e20137eba7e5b12 (plain)
1
2
3
4
5
6
7
8
9
10
from operationscore.Behavior import *
import util.ComponentRegistry as compReg
import pdb
class AllPixelsLeft(Behavior):
    """Behavior which returns all points left of its input.  No Args."""
    def processResponse(self, sensorInputs, recursiveInputs):
        for sensory in sensorInputs:
            xLoc = sensory['Location'][0] 
            sensory['Location'] = '{x}<' + str(xLoc) 
        return (sensorInputs, recursiveInputs)