Skip to content

Commit 9be4e73

Browse files
committed
Ensure current sync quad state is always displayed
1 parent 4b82df2 commit 9be4e73

File tree

2 files changed

+65
-57
lines changed

2 files changed

+65
-57
lines changed

src/workflows/Extensions/LogExperiment.bonsai

+7-50
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,6 @@
7676
<Expression xsi:type="rx:PublishSubject">
7777
<Name>Tick</Name>
7878
</Expression>
79-
<Expression xsi:type="WorkflowInput">
80-
<Name>Source1</Name>
81-
</Expression>
82-
<Expression xsi:type="Combinator">
83-
<Combinator xsi:type="gl:UpdateViewportState">
84-
<gl:X>0</gl:X>
85-
<gl:Y>0</gl:Y>
86-
<gl:Width>1</gl:Width>
87-
<gl:Height>1</gl:Height>
88-
</Combinator>
89-
</Expression>
90-
<Expression xsi:type="IncludeWorkflow" Path="BonVision:Environment.OrthographicView.bonsai">
91-
<Left>0</Left>
92-
<Right>1</Right>
93-
<Bottom>0</Bottom>
94-
<Top>1</Top>
95-
</Expression>
9679
<Expression xsi:type="ExternalizedMapping">
9780
<Property Name="Seed" />
9881
<Property Name="P" />
@@ -182,26 +165,6 @@
182165
<Expression xsi:type="MulticastSubject">
183166
<Name>HarpSync</Name>
184167
</Expression>
185-
<Expression xsi:type="PropertyMapping">
186-
<PropertyMappings>
187-
<Property Name="ColorR" />
188-
<Property Name="ColorG" />
189-
<Property Name="ColorB" />
190-
</PropertyMappings>
191-
</Expression>
192-
<Expression xsi:type="IncludeWorkflow" Path="BonVision:Primitives.DrawQuad.bonsai">
193-
<ExtentX>0.1</ExtentX>
194-
<ExtentY>0.3</ExtentY>
195-
<LocationX>0</LocationX>
196-
<LocationY>0</LocationY>
197-
<Layer>0</Layer>
198-
<Angle>0</Angle>
199-
<ColorR>1</ColorR>
200-
<ColorG>1</ColorG>
201-
<ColorB>1</ColorB>
202-
<ColorA>1</ColorA>
203-
</Expression>
204-
<Expression xsi:type="WorkflowOutput" />
205168
<Expression xsi:type="SubscribeSubject">
206169
<Name>Request</Name>
207170
</Expression>
@@ -272,29 +235,23 @@ Item1 as Response)</scr:Expression>
272235
<Edge From="12" To="13" Label="Source1" />
273236
<Edge From="13" To="14" Label="Source1" />
274237
<Edge From="15" To="16" Label="Source1" />
275-
<Edge From="16" To="17" Label="Source1" />
276-
<Edge From="17" To="26" Label="Source1" />
238+
<Edge From="16" To="18" Label="Source1" />
239+
<Edge From="17" To="18" Label="Source2" />
277240
<Edge From="18" To="19" Label="Source1" />
278-
<Edge From="19" To="21" Label="Source1" />
279-
<Edge From="20" To="21" Label="Source2" />
280-
<Edge From="21" To="22" Label="Source1" />
241+
<Edge From="19" To="20" Label="Source1" />
242+
<Edge From="20" To="21" Label="Source1" />
281243
<Edge From="22" To="23" Label="Source1" />
282244
<Edge From="23" To="24" Label="Source1" />
283-
<Edge From="24" To="25" Label="Source1" />
284-
<Edge From="25" To="26" Label="Source2" />
285-
<Edge From="26" To="27" Label="Source1" />
245+
<Edge From="25" To="26" Label="Source1" />
246+
<Edge From="26" To="28" Label="Source1" />
247+
<Edge From="27" To="28" Label="Source2" />
286248
<Edge From="28" To="29" Label="Source1" />
287249
<Edge From="29" To="30" Label="Source1" />
288250
<Edge From="31" To="32" Label="Source1" />
289251
<Edge From="32" To="34" Label="Source1" />
290252
<Edge From="33" To="34" Label="Source2" />
291253
<Edge From="34" To="35" Label="Source1" />
292254
<Edge From="35" To="36" Label="Source1" />
293-
<Edge From="37" To="38" Label="Source1" />
294-
<Edge From="38" To="40" Label="Source1" />
295-
<Edge From="39" To="40" Label="Source2" />
296-
<Edge From="40" To="41" Label="Source1" />
297-
<Edge From="41" To="42" Label="Source1" />
298255
</Edges>
299256
</Workflow>
300257
</WorkflowBuilder>

src/workflows/ranson-rig.bonsai

+58-7
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,6 @@ Item2.Index as TrialID)</scr:Expression>
349349
<Expression xsi:type="Combinator">
350350
<Combinator xsi:type="rx:SubscribeWhen" />
351351
</Expression>
352-
<Expression xsi:type="SubscribeSubject">
353-
<Name>PostRender</Name>
354-
</Expression>
355352
<Expression xsi:type="IncludeWorkflow" Path="Extensions\LogExperiment.bonsai">
356353
<Seed>0</Seed>
357354
<P>1</P>
@@ -395,9 +392,8 @@ Item2.Index as TrialID)</scr:Expression>
395392
<Edge From="29" To="30" Label="Source1" />
396393
<Edge From="31" To="33" Label="Source1" />
397394
<Edge From="32" To="33" Label="Source2" />
398-
<Edge From="34" To="35" Label="Source1" />
399-
<Edge From="35" To="37" Label="Source1" />
400-
<Edge From="36" To="37" Label="Source2" />
395+
<Edge From="34" To="36" Label="Source1" />
396+
<Edge From="35" To="36" Label="Source2" />
401397
</Edges>
402398
</Workflow>
403399
</Expression>
@@ -510,6 +506,61 @@ Item2.Index as TrialID)</scr:Expression>
510506
</Edges>
511507
</Workflow>
512508
</Expression>
509+
<Expression xsi:type="GroupWorkflow">
510+
<Name>SyncQuad</Name>
511+
<Workflow>
512+
<Nodes>
513+
<Expression xsi:type="SubscribeSubject">
514+
<Name>PostRender</Name>
515+
</Expression>
516+
<Expression xsi:type="Combinator">
517+
<Combinator xsi:type="gl:UpdateViewportState">
518+
<gl:X>0</gl:X>
519+
<gl:Y>0</gl:Y>
520+
<gl:Width>1</gl:Width>
521+
<gl:Height>1</gl:Height>
522+
</Combinator>
523+
</Expression>
524+
<Expression xsi:type="IncludeWorkflow" Path="BonVision:Environment.OrthographicView.bonsai">
525+
<Left>0</Left>
526+
<Right>1</Right>
527+
<Bottom>0</Bottom>
528+
<Top>1</Top>
529+
</Expression>
530+
<Expression xsi:type="SubscribeSubject">
531+
<Name>HarpSync</Name>
532+
</Expression>
533+
<Expression xsi:type="PropertyMapping">
534+
<PropertyMappings>
535+
<Property Name="ColorR" />
536+
<Property Name="ColorG" />
537+
<Property Name="ColorB" />
538+
</PropertyMappings>
539+
</Expression>
540+
<Expression xsi:type="IncludeWorkflow" Path="BonVision:Primitives.DrawQuad.bonsai">
541+
<ExtentX>0.1</ExtentX>
542+
<ExtentY>0.3</ExtentY>
543+
<LocationX>0</LocationX>
544+
<LocationY>0</LocationY>
545+
<Layer>0</Layer>
546+
<Angle>0</Angle>
547+
<ColorR>0</ColorR>
548+
<ColorG>0</ColorG>
549+
<ColorB>0</ColorB>
550+
<ColorA>1</ColorA>
551+
</Expression>
552+
<Expression xsi:type="WorkflowOutput" />
553+
</Nodes>
554+
<Edges>
555+
<Edge From="0" To="1" Label="Source1" />
556+
<Edge From="1" To="2" Label="Source1" />
557+
<Edge From="2" To="5" Label="Source1" />
558+
<Edge From="3" To="4" Label="Source1" />
559+
<Edge From="4" To="5" Label="Source2" />
560+
<Edge From="5" To="6" Label="Source1" />
561+
</Edges>
562+
</Workflow>
563+
</Expression>
513564
<Expression xsi:type="SubscribeSubject">
514565
<Name>Request</Name>
515566
</Expression>
@@ -527,7 +578,7 @@ Item2.Index as TrialID)</scr:Expression>
527578
<Edge From="2" To="3" Label="Source1" />
528579
<Edge From="3" To="4" Label="Source1" />
529580
<Edge From="4" To="5" Label="Source1" />
530-
<Edge From="10" To="11" Label="Source1" />
581+
<Edge From="11" To="12" Label="Source1" />
531582
</Edges>
532583
</Workflow>
533584
</Expression>

0 commit comments

Comments
 (0)