Skip to content

Commit 494b8f9

Browse files
Merge pull request #1729 from AllenNeuralDynamics/production_testing
[update main] 2026-03-24
2 parents 6532930 + 802d60a commit 494b8f9

3 files changed

Lines changed: 38 additions & 18 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies = [
3737
"deepdiff >=8, <9",
3838
"aind-data-schema==1.1.0",
3939
"aind-data-schema-models==0.5.6",
40-
"pydantic >=2.9.2, <3",
40+
"pydantic==2.10.6",
4141
"stagewidget==1.0.5",
4242
"python-logging-loki >=0.3.1, <2",
4343
"pykeepass >=4.0.7, <5",
@@ -103,4 +103,4 @@ profile = "black"
103103

104104
[tool.interrogate]
105105
exclude = ["setup.py", "docs", "build", "tests"]
106-
fail-under = 70
106+
fail-under = 70

src/foraging_gui/MyFunctions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def _generate_next_coupled_block(self):
500500
if self.TP_Randomness == "Exponential":
501501
self.BlockLen = np.array(
502502
int(
503-
np.random.exponential(float(self.TP_BlockBeta), 1)
503+
np.random.exponential(float(self.TP_BlockBeta))
504504
+ float(self.TP_BlockMin)
505505
)
506506
)
@@ -520,7 +520,7 @@ def _generate_next_trial_other_paras(self):
520520
# get the ITI time and delay time
521521
if self.TP_Randomness == "Exponential":
522522
self.CurrentITI = float(
523-
np.random.exponential(float(self.TP_ITIBeta), 1)
523+
np.random.exponential(float(self.TP_ITIBeta))
524524
+ float(self.TP_ITIMin)
525525
)
526526
elif self.TP_Randomness == "Even":
@@ -531,7 +531,7 @@ def _generate_next_trial_other_paras(self):
531531
self.CurrentITI = float(self.TP_ITIMax)
532532
if self.TP_Randomness == "Exponential":
533533
self.CurrentDelay = float(
534-
np.random.exponential(float(self.TP_DelayBeta), 1)
534+
np.random.exponential(float(self.TP_DelayBeta))
535535
+ float(self.TP_DelayMin)
536536
)
537537
elif self.TP_Randomness == "Even":

src/workflows/foraging.bonsai

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2896,6 +2896,23 @@
28962896
<Expression xsi:type="SubscribeSubject">
28972897
<Name>BehaviorEvents</Name>
28982898
</Expression>
2899+
<Expression xsi:type="Combinator">
2900+
<Combinator xsi:type="rx:Take">
2901+
<rx:Count>1</rx:Count>
2902+
</Combinator>
2903+
</Expression>
2904+
<Expression xsi:type="beh:CreateMessage">
2905+
<harp:MessageType>Write</harp:MessageType>
2906+
<harp:Payload xsi:type="beh:CreateEventEnablePayload">
2907+
<beh:EventEnable>PortDI PortDIO AnalogData Camera0 Camera1</beh:EventEnable>
2908+
</harp:Payload>
2909+
</Expression>
2910+
<Expression xsi:type="MulticastSubject">
2911+
<Name>BehaviorCommands</Name>
2912+
</Expression>
2913+
<Expression xsi:type="SubscribeSubject">
2914+
<Name>BehaviorEvents</Name>
2915+
</Expression>
28992916
<Expression xsi:type="beh:Parse">
29002917
<harp:Register xsi:type="beh:TimestampedAnalogData" />
29012918
</Expression>
@@ -3579,24 +3596,27 @@
35793596
<Edge From="6" To="7" Label="Source1" />
35803597
<Edge From="7" To="8" Label="Source1" />
35813598
<Edge From="8" To="9" Label="Source1" />
3582-
<Edge From="10" To="15" Label="Source1" />
3599+
<Edge From="10" To="11" Label="Source1" />
35833600
<Edge From="11" To="12" Label="Source1" />
35843601
<Edge From="12" To="13" Label="Source1" />
3585-
<Edge From="13" To="14" Label="Source1" />
3586-
<Edge From="14" To="15" Label="Source2" />
3587-
<Edge From="16" To="21" Label="Source1" />
3602+
<Edge From="14" To="19" Label="Source1" />
3603+
<Edge From="15" To="16" Label="Source1" />
3604+
<Edge From="16" To="17" Label="Source1" />
35883605
<Edge From="17" To="18" Label="Source1" />
3589-
<Edge From="18" To="19" Label="Source1" />
3590-
<Edge From="19" To="20" Label="Source1" />
3591-
<Edge From="20" To="21" Label="Source2" />
3592-
<Edge From="22" To="26" Label="Source1" />
3606+
<Edge From="18" To="19" Label="Source2" />
3607+
<Edge From="20" To="25" Label="Source1" />
3608+
<Edge From="21" To="22" Label="Source1" />
3609+
<Edge From="22" To="23" Label="Source1" />
35933610
<Edge From="23" To="24" Label="Source1" />
3594-
<Edge From="24" To="25" Label="Source1" />
3595-
<Edge From="25" To="26" Label="Source2" />
3596-
<Edge From="27" To="31" Label="Source1" />
3611+
<Edge From="24" To="25" Label="Source2" />
3612+
<Edge From="26" To="30" Label="Source1" />
3613+
<Edge From="27" To="28" Label="Source1" />
35973614
<Edge From="28" To="29" Label="Source1" />
3598-
<Edge From="29" To="30" Label="Source1" />
3599-
<Edge From="30" To="31" Label="Source2" />
3615+
<Edge From="29" To="30" Label="Source2" />
3616+
<Edge From="31" To="35" Label="Source1" />
3617+
<Edge From="32" To="33" Label="Source1" />
3618+
<Edge From="33" To="34" Label="Source1" />
3619+
<Edge From="34" To="35" Label="Source2" />
36003620
</Edges>
36013621
</Workflow>
36023622
</Expression>

0 commit comments

Comments
 (0)