From b3102ce1c86636473f2e6639803e0dbb36a8442e Mon Sep 17 00:00:00 2001 From: Micah Woodard Date: Tue, 15 Sep 2026 08:30:15 -0700 Subject: [PATCH 1/2] adds software events manual water events --- src/Extensions/Visualizers.bonsai | 61 +++++++++++++------ .../data_contract/_dataset.py | 28 +++++++++ 2 files changed, 71 insertions(+), 18 deletions(-) diff --git a/src/Extensions/Visualizers.bonsai b/src/Extensions/Visualizers.bonsai index d647128..b257e4b 100644 --- a/src/Extensions/Visualizers.bonsai +++ b/src/Extensions/Visualizers.bonsai @@ -1,5 +1,5 @@  - - GiveManualWaterRight + GiveRewardRight @@ -985,7 +985,7 @@ - GiveManualWaterRight + GiveRewardRight @@ -1086,14 +1086,33 @@ IsFlushingValveLeft - - GiveManualWaterRight + + UiCueGiveLeft + - GiveManualWaterRight + LeftManualAutoReward - - GiveRewardRight + + UiCueGiveRight + + + + RightManualAutoReward + + + UiGiveRight + + + + RightManualWater + + + UiGiveLeft + + + + LeftManualWater IsFlushingValveLeft @@ -1722,24 +1741,30 @@ - - - + + + - + - - - + - + - - + + + + + + + + + + diff --git a/src/aind_behavior_dynamic_foraging/data_contract/_dataset.py b/src/aind_behavior_dynamic_foraging/data_contract/_dataset.py index dfe3f11..eb44438 100644 --- a/src/aind_behavior_dynamic_foraging/data_contract/_dataset.py +++ b/src/aind_behavior_dynamic_foraging/data_contract/_dataset.py @@ -209,6 +209,34 @@ def make_dataset( root_path / "behavior/SoftwareEvents/TrialMetrics.json" ), ), + SoftwareEvents( + name="LeftManualAutoReward", + description="An event emitted when the manual left auto reward is triggered.", + reader_params=SoftwareEvents.make_params( + root_path / "behavior/SoftwareEvents/LeftManualAutoReward.json" + ), + ), + SoftwareEvents( + name="RightManualAutoReward", + description="An event emitted when the manual right auto reward is triggered.", + reader_params=SoftwareEvents.make_params( + root_path / "behavior/SoftwareEvents/RightManualAutoReward.json" + ), + ), + SoftwareEvents( + name="RightManualWater", + description="An event emitted when the right manual water is triggered.", + reader_params=SoftwareEvents.make_params( + root_path / "behavior/SoftwareEvents/RightManualWater.json" + ), + ), + SoftwareEvents( + name="LeftManualWater", + description="An event emitted when the left manual water is triggered.", + reader_params=SoftwareEvents.make_params( + root_path / "behavior/SoftwareEvents/LeftManualWater.json" + ), + ), SoftwareEvents( name="GiveManualWaterRight", description="An event emitted when manual water is given through visualizer. The value corresponds to whether water was delivered on the Right (True) or Left (False)", From dfc8acb8daec88ade3e85315958a294518067469 Mon Sep 17 00:00:00 2001 From: Micah Woodard Date: Tue, 15 Sep 2026 14:07:14 -0700 Subject: [PATCH 2/2] updates description --- src/aind_behavior_dynamic_foraging/data_contract/_dataset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aind_behavior_dynamic_foraging/data_contract/_dataset.py b/src/aind_behavior_dynamic_foraging/data_contract/_dataset.py index eb44438..746501e 100644 --- a/src/aind_behavior_dynamic_foraging/data_contract/_dataset.py +++ b/src/aind_behavior_dynamic_foraging/data_contract/_dataset.py @@ -211,14 +211,14 @@ def make_dataset( ), SoftwareEvents( name="LeftManualAutoReward", - description="An event emitted when the manual left auto reward is triggered.", + description="An event emitted when the manual left auto reward is triggered. This manual reward is aligned with go cue.", reader_params=SoftwareEvents.make_params( root_path / "behavior/SoftwareEvents/LeftManualAutoReward.json" ), ), SoftwareEvents( name="RightManualAutoReward", - description="An event emitted when the manual right auto reward is triggered.", + description="An event emitted when the manual right auto reward is triggered. This manual reward is aligned with go cue.", reader_params=SoftwareEvents.make_params( root_path / "behavior/SoftwareEvents/RightManualAutoReward.json" ),