From f270cdc56ac7b221b2e9234b11af683d10e6168f Mon Sep 17 00:00:00 2001 From: aspaNeuro Date: Tue, 4 Jun 2024 17:14:44 +0100 Subject: [PATCH] Add dummy patch visualizer Fixes #540 Co-Authored-by: NeuroThom --- .../social/Extensions/ControlPanel.bonsai | 144 ++++++++------ .../social/Extensions/EnvironmentLogic.bonsai | 31 +++ .../social/Extensions/Visualization.bonsai | 188 ++++++++++-------- 3 files changed, 210 insertions(+), 153 deletions(-) diff --git a/workflows/social/Extensions/ControlPanel.bonsai b/workflows/social/Extensions/ControlPanel.bonsai index d1b27bb0..c3bd873f 100644 --- a/workflows/social/Extensions/ControlPanel.bonsai +++ b/workflows/social/Extensions/ControlPanel.bonsai @@ -136,7 +136,7 @@ 0 - 3 + 4 @@ -148,7 +148,7 @@ 1 - 4 + 5 @@ -160,7 +160,7 @@ 2 - 5 + 6 @@ -276,32 +276,6 @@ - - false - false - - - - VideoEvents - - - - Reload Environment - - - - ReloadEnvironment - - - - PatchStatistics - 1 - 2 - - - - - RfidMeasurements @@ -325,6 +299,18 @@ + + PatchState + + + + + 3 + 7 + + + + TimeSinceLastVisit @@ -448,30 +434,25 @@ - + - + - + - - - + + + - - + + - - - + + + - - - - - @@ -479,8 +460,30 @@ SubjectActivity + + false + false + + - Heatmap + VideoEvents + + + + Reload Environment + + + + ReloadEnvironment + + + + Environment + 1 + 2 + + + @@ -521,18 +524,24 @@ - + - + - - - + + + - + - - + + + + + + + + @@ -1190,6 +1199,9 @@ FilteredWeight.Value - BaselinedWeight.Value as Baseline) Value.Image + + Heatmap + @@ -1206,6 +1218,7 @@ FilteredWeight.Value - BaselinedWeight.Value as Baseline) CameraPatch1 CameraPatch2 CameraPatch3 + HeatMap @@ -1213,25 +1226,26 @@ FilteredWeight.Value - BaselinedWeight.Value as Baseline) - + - + - + - + - + - + - + - + - - - + + + + diff --git a/workflows/social/Extensions/EnvironmentLogic.bonsai b/workflows/social/Extensions/EnvironmentLogic.bonsai index 7dda715f..5b63f9f1 100644 --- a/workflows/social/Extensions/EnvironmentLogic.bonsai +++ b/workflows/social/Extensions/EnvironmentLogic.bonsai @@ -743,6 +743,29 @@ RatePatch3 as Rate) Patch3ThresholdCrossing + + PatchDummy1WheelDisplacement + + + Value + + + + + + + PatchDummy1DistanceState + 75 + 0.01 + PatchDummy1DeliveryCount + PatchDummy1State + + + PatchDummy1DeliverPellet + + + PatchDummy1ThresholdCrossing + @@ -760,6 +783,11 @@ RatePatch3 as Rate) + + + + + @@ -784,6 +812,9 @@ RatePatch3 as Rate) Patch3ThresholdCrossing + + PatchDummy1ThresholdCrossing + UpdatePelletCount diff --git a/workflows/social/Extensions/Visualization.bonsai b/workflows/social/Extensions/Visualization.bonsai index c2c20703..31e6f4af 100644 --- a/workflows/social/Extensions/Visualization.bonsai +++ b/workflows/social/Extensions/Visualization.bonsai @@ -77,6 +77,9 @@ Patch3DistanceState + + PatchDummy1DistanceState + Patch1State @@ -95,6 +98,12 @@ Item1 + + PatchDummy1State + + + Item1 + @@ -1340,136 +1349,137 @@ Value.TagId as TagId, - - - - - - - - - - - + + + + + + + + + + + - + + - - + - + + - - + - + + - - + - + + - + - + - - - - - - - - - - - - - + + + + + + + + + + + + + - - + - + - + + - + - + - + - + - - + - - + + + - - - - - - - - + + + + + + + - - - - - - + + + + + + + - - - - + + + - + - - + + - - + + + - - + + - - - + + + @@ -1482,19 +1492,21 @@ Value.TagId as TagId, - - - - - - - - - - - - + + + + + + + + + + + + + + \ No newline at end of file