Skip to content

Commit 7ebe8a2

Browse files
committed
Ensure frame event sequence continues across ITI
1 parent fecc77b commit 7ebe8a2

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

src/workflows/Extensions/LogExperiment.bonsai

+9-15
Original file line numberDiff line numberDiff line change
@@ -126,24 +126,19 @@
126126
<Expression xsi:type="SubscribeSubject">
127127
<Name>Tick</Name>
128128
</Expression>
129-
<Expression xsi:type="Combinator">
130-
<Combinator xsi:type="rx:Take">
131-
<rx:Count>1</rx:Count>
132-
</Combinator>
133-
</Expression>
134129
<Expression xsi:type="Combinator">
135130
<Combinator xsi:type="FloatProperty">
136131
<Value>0</Value>
137132
</Combinator>
138133
</Expression>
139-
<Expression xsi:type="Combinator">
140-
<Combinator xsi:type="rx:Concat" />
141-
</Expression>
142134
<Expression xsi:type="SubscribeSubject">
143135
<Name>StartTrial</Name>
144136
</Expression>
145137
<Expression xsi:type="Combinator">
146-
<Combinator xsi:type="rx:SubscribeWhen" />
138+
<Combinator xsi:type="rx:TakeUntil" />
139+
</Expression>
140+
<Expression xsi:type="Combinator">
141+
<Combinator xsi:type="rx:Concat" />
147142
</Expression>
148143
<Expression xsi:type="Combinator">
149144
<Combinator xsi:type="rx:Repeat" />
@@ -159,15 +154,14 @@
159154
<Edge From="1" To="2" Label="Source2" />
160155
<Edge From="2" To="4" Label="Source1" />
161156
<Edge From="3" To="4" Label="Source2" />
162-
<Edge From="4" To="8" Label="Source1" />
157+
<Edge From="4" To="9" Label="Source1" />
163158
<Edge From="5" To="6" Label="Source1" />
164-
<Edge From="6" To="7" Label="Source1" />
159+
<Edge From="6" To="8" Label="Source1" />
165160
<Edge From="7" To="8" Label="Source2" />
166-
<Edge From="8" To="10" Label="Source1" />
167-
<Edge From="9" To="10" Label="Source2" />
161+
<Edge From="8" To="9" Label="Source2" />
162+
<Edge From="9" To="10" Label="Source1" />
168163
<Edge From="10" To="11" Label="Source1" />
169-
<Edge From="11" To="12" Label="Source1" />
170-
<Edge From="13" To="14" Label="Source1" />
164+
<Edge From="12" To="13" Label="Source1" />
171165
</Edges>
172166
</Workflow>
173167
</Expression>

0 commit comments

Comments
 (0)