Skip to content

Commit

Permalink
Merge pull request #190 from SainsburyWellcomeCentre/aeon-foraging
Browse files Browse the repository at this point in the history
Replace virtual feeder internal timer with harp trigger source
  • Loading branch information
glopesdev authored Dec 5, 2023
2 parents 9ba5f71 + 035f77f commit 4212d97
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/Aeon.Foraging/Aeon.Foraging.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<PackageTags>Bonsai Rx Project Aeon Foraging</PackageTags>
<TargetFramework>net472</TargetFramework>
<VersionPrefix>0.1.0</VersionPrefix>
<VersionSuffix>build231013</VersionSuffix>
<VersionSuffix>build231201</VersionSuffix>
</PropertyGroup>

<ItemGroup>
Expand Down
38 changes: 22 additions & 16 deletions src/Aeon.Foraging/VirtualFeeder.bonsai
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,14 @@
<Value>0.01</Value>
</Operand>
</Expression>
<Expression xsi:type="Combinator">
<Combinator xsi:type="rx:Timer">
<rx:DueTime>PT0S</rx:DueTime>
<rx:Period>PT0.015S</rx:Period>
</Combinator>
<Expression xsi:type="ExternalizedMapping">
<Property Name="Name" DisplayName="TriggerSource" Description="The trigger source used to sample the virtual feeder wheel." />
</Expression>
<Expression xsi:type="SubscribeSubject">
<Name>LocalTrigger</Name>
</Expression>
<Expression xsi:type="MemberSelector">
<Selector>Seconds</Selector>
</Expression>
<Expression xsi:type="Combinator">
<Combinator xsi:type="rx:BufferTrigger">
Expand Down Expand Up @@ -104,7 +107,7 @@
</Workflow>
</Expression>
<Expression xsi:type="Combinator">
<Combinator xsi:type="rx:Timestamp" />
<Combinator xsi:type="rx:Zip" />
</Expression>
<Expression xsi:type="Combinator">
<Combinator xsi:type="harp:CreateTimestamped" />
Expand Down Expand Up @@ -155,20 +158,23 @@
<Edge From="7" To="8" Label="Source2" />
<Edge From="8" To="10" Label="Source1" />
<Edge From="9" To="10" Label="Source2" />
<Edge From="10" To="12" Label="Source1" />
<Edge From="11" To="12" Label="Source2" />
<Edge From="10" To="14" Label="Source1" />
<Edge From="11" To="12" Label="Source1" />
<Edge From="12" To="13" Label="Source1" />
<Edge From="13" To="14" Label="Source1" />
<Edge From="13" To="14" Label="Source2" />
<Edge From="13" To="16" Label="Source2" />
<Edge From="14" To="15" Label="Source1" />
<Edge From="15" To="17" Label="Source1" />
<Edge From="16" To="17" Label="Source2" />
<Edge From="18" To="19" Label="Source1" />
<Edge From="19" To="20" Label="Source1" />
<Edge From="15" To="16" Label="Source1" />
<Edge From="16" To="17" Label="Source1" />
<Edge From="17" To="19" Label="Source1" />
<Edge From="18" To="19" Label="Source2" />
<Edge From="20" To="21" Label="Source1" />
<Edge From="21" To="22" Label="Source1" />
<Edge From="22" To="24" Label="Source1" />
<Edge From="23" To="24" Label="Source2" />
<Edge From="25" To="26" Label="Source1" />
<Edge From="22" To="23" Label="Source1" />
<Edge From="23" To="24" Label="Source1" />
<Edge From="24" To="26" Label="Source1" />
<Edge From="25" To="26" Label="Source2" />
<Edge From="27" To="28" Label="Source1" />
</Edges>
</Workflow>
</WorkflowBuilder>

0 comments on commit 4212d97

Please sign in to comment.