AllenNeuralDynamics / dynamic-foraging-task

Bonsai/Harp workflow for Dynamic Foraging with Python GUI for visualization and control
MIT License
5 stars 4 forks source link

FATAL:IndexError: index 0 is out of bounds for axis 0 with size 0 #412

Closed alexpiet closed 1 month ago

alexpiet commented 4 months ago

Multiple optogenetics errors happened before the fatal error, so I assume this is a downstream issue. Creating an issue in case it happens again

FATAL:IndexError: index 0 is out of bounds for axis 0 with size 0 | Foraging.py | exception_hook | line 3668 | 1C

06:00:20 PM:INFO:Foraging:Foraging.py:log_git_hash:line 3580:Python version: 3.9.19 (main, Mar 21 2024, 17:21:27) [MSC v.1916 64 bit (AMD64)] 06:00:20 PM:INFO:Foraging:Foraging.py:log_git_hash:line 3596:Current git commit branch, hash: main, 3b1b41c58ce82ddd51af4a933079f4715931b292 06:00:20 PM:WARNING:Foraging:Foraging.py:log_git_hash:line 3606:local repository is clean ... 06:00:57 PM:ERROR:MyFunctions:MyFunctions.py:_PerformOptogenetics:line 214:'GenerateTrials' object has no attribute 'CLP_CurrentDuration' 06:00:57 PM:INFO:Foraging:Foraging.py:_StartTrialLoop:line 3200:starting trial loop 06:00:57 PM:INFO:Foraging:Foraging.py:_StartTrialLoop:line 3221:Current trial: 1 06:01:10 PM:ERROR:Foraging:Foraging.py:_StartTrialLoop:line 3257:Caught this error: 'GenerateTrials' object has no attribute 'Location1_Size' 06:01:24 PM:INFO:Foraging:Foraging.py:_Start:line 2952:Start button pressed: starting trial loop 06:01:24 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1351:processing parameter changes 06:01:26 PM:INFO:Foraging:Foraging.py:_Start:line 2975:Starting session, with experimenter: the ghost in the shell 06:01:26 PM:INFO:Foraging:Foraging.py:_StartTrialLoop:line 3200:starting trial loop 06:01:26 PM:INFO:Foraging:Foraging.py:_StartTrialLoop:line 3221:Current trial: 2 06:01:26 PM:ERROR:Foraging:Foraging.py:exception_hook:line 3668:FATAL ERROR: Traceback (most recent call last): File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Foraging.py", line 3190, in _Start self._StartTrialLoop(GeneratedTrials,worker1) File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Foraging.py", line 3264, in _StartTrialLoop self.PlotM._Update(GeneratedTrials=GeneratedTrials,Channel=self.Channel2) File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Visualization.py", line 63, in _Update self.B_Time=self.B_RewardOutcomeTime-GeneratedTrials.B_TrialStartTime[0] IndexError: index 0 is out of bounds for axis 0 with size 0

XX-Yin commented 4 months ago

This is also related to https://github.com/AllenNeuralDynamics/dynamic-foraging-task/issues/415