aboutsummaryrefslogtreecommitdiff
path: root/behaviors/AllPixels.py
diff options
context:
space:
mode:
Diffstat (limited to 'behaviors/AllPixels.py')
-rw-r--r--behaviors/AllPixels.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/behaviors/AllPixels.py b/behaviors/AllPixels.py
new file mode 100644
index 0000000..7f66ad6
--- /dev/null
+++ b/behaviors/AllPixels.py
@@ -0,0 +1,9 @@
+from operationscore.Behavior import *
+class AllPixels(Behavior):
+ """Turns on all Pixels in the installation. Must use SimpleMapper, or other Mapper supporting
+ conditional pixel locations."""
+
+ def processResponse(self, sensorInputs, recursiveInputs):
+ for sensory in sensorInputs:#TODO: consider replicating the dict
+ sensory['Location'] = 'True'
+ return (sensorInputs, recursiveInputs)