Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: index -1 is out of bounds for axis 1 with size 0 #1148

Open
alexpiet opened this issue Dec 10, 2024 · 0 comments
Open

IndexError: index -1 is out of bounds for axis 1 with size 0 #1148

alexpiet opened this issue Dec 10, 2024 · 0 comments
Labels
low priority - auto-generated autogenerated issues that have only occurred once

Comments

@alexpiet
Copy link
Collaborator

This issue was automatically generated from GUI logs.

file: Foraging.py
function: _ShowRewardPairs
line 2260
logfile: W10DT714030/W10DT714030-D_gui_log_2024-12-09_15-16-14.txt
boxes: 3D
count: 12
text: IndexError: index -1 is out of bounds for axis 1 with size 0

GUI Log snippet (click for full log)

03:18:07 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1900:processing parameter changes
03:18:08 PM:INFO:Foraging:Foraging.py:_Start:line 3872:Starting session, with experimenter: Test
03:18:08 PM:INFO:Foraging:Foraging.py:_set_default_project:line 3740:Setting Project name: Behavior Platform
03:18:08 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1900:processing parameter changes
03:18:08 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1900:processing parameter changes
03:18:08 PM:INFO:Foraging:Foraging.py:_restartlogging:line 1034:Restarting logging
03:18:08 PM:INFO:Foraging:Foraging.py:_GetSaveFolder:line 2774:Created new folder: C:\behavior_data\447-3-D\1\behavior_1_2024-12-09_15-18-08
03:18:08 PM:INFO:Foraging:Foraging.py:_GetSaveFolder:line 2777:Created new folder: C:\behavior_data\447-3-D\1\behavior_1_2024-12-09_15-18-08\metadata-dir
03:18:08 PM:INFO:Foraging:Foraging.py:_GetSaveFolder:line 2780:Created new folder: C:\behavior_data\447-3-D\1\behavior_1_2024-12-09_15-18-08\behavior
03:18:08 PM:INFO:Foraging:Foraging.py:_GetSaveFolder:line 2783:Created new folder: C:\behavior_data\447-3-D\1\behavior_1_2024-12-09_15-18-08\behavior\raw.harp
03:18:08 PM:INFO:Foraging:Foraging.py:_GetSaveFolder:line 2786:Created new folder: C:\behavior_data\447-3-D\1\behavior_1_2024-12-09_15-18-08\behavior-videos
03:18:08 PM:INFO:Foraging:Foraging.py:_GetSaveFolder:line 2789:Created new folder: C:\behavior_data\447-3-D\1\behavior_1_2024-12-09_15-18-08\fib
03:18:08 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/loggerstarted', 'C:\\behavior_data\\447-3-D\\1\\behavior_1_2024-12-09_15-18-08\\behavior\\raw.harp', '127.0.0.1', 4032]
03:18:08 PM:INFO:Foraging:Foraging.py:_CheckStageConnection:line 793:Checking stage connection
03:18:08 PM:INFO:Foraging:Foraging.py:_GetPositions:line 805:Grabbing current stage position
03:18:08 PM:ERROR:Foraging:Foraging.py:_ShowRewardPairs:line 2260:Traceback (most recent call last):
  File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Foraging.py", line 2248, in _ShowRewardPairs
    + str(np.round(self.GeneratedTrials.B_RewardProHistory[:,self.GeneratedTrials.B_CurrentTrialN],2)))
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IndexError: index -1 is out of bounds for axis 1 with size 0
Full GUI log
03:16:14 PM:INFO:Foraging:Foraging.py:start_gui_log_file:line 4786:Starting logfile!
03:16:15 PM:WARNING:Foraging:Foraging.py:<module>:line 4929:Failed to setup LOKI Handler: 'NoneType' object has no attribute 'username'
03:16:15 PM:INFO:Foraging:Foraging.py:log_git_hash:line 4797:Python version: 3.11.9 | packaged by Anaconda, Inc. | (main, Apr 19 2024, 16:40:41) [MSC v.1916 64 bit (AMD64)]
03:16:16 PM:INFO:Foraging:Foraging.py:log_git_hash:line 4814:Current git commit branch, hash: production_testing, 15b0d03623f243275f779e00596411083307693a
03:16:16 PM:INFO:Foraging:Foraging.py:log_git_hash:line 4818:Current foraging_gui version: 1.6.10
03:16:16 PM:WARNING:Foraging:Foraging.py:log_git_hash:line 4828:local repository is clean
03:16:16 PM:INFO:Foraging:Foraging.py:<module>:line 4934:Setting QApplication attributes
03:16:16 PM:INFO:Foraging:Foraging.py:<module>:line 4942:Starting QApplication and Window
03:16:16 PM:INFO:Foraging:Foraging.py:__init__:line 77:Creating Window
03:16:16 PM:INFO:Foraging:Foraging.py:_GetSettings:line 1211:Loaded settings_box file
03:16:16 PM:INFO:Foraging:Foraging.py:_GetSettings:line 1239:Loaded settings file
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (FIP_settings), using default: C:\Users\svc_aind_behavior\Documents\FIPSettings
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (bonsai_config_path), using default: C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\bonsai\Bonsai.config
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (open_ephys_machine_ip_address), using default: 
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (metadata_dialog_folder), using default: C:\Users\svc_aind_behavior\Documents\ForagingSettings\metadata_dialog\
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (rig_metadata_folder), using default: C:\Users\svc_aind_behavior\Documents\ForagingSettings\rig_metadata\
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (project_info_file), using default: C:\Users\svc_aind_behavior\Documents\ForagingSettings\Project Name and Funding Source v2.csv
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (schedule_path), using default: Z:\dynamic_foraging\DynamicForagingSchedule.csv
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (lick_spout_distance_box1), using default: 5000
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (lick_spout_distance_box2), using default: 5000
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (lick_spout_distance_box3), using default: 5000
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (lick_spout_distance_box4), using default: 5000
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (name_mapper_file), using default: C:\Users\svc_aind_behavior\Documents\ForagingSettings\name_mapper.json
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (save_each_trial), using default: True
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (AutomaticUpload), using default: True
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (manifest_flag_dir), using default: C:\Users\svc_aind_behavior\Documents\aind_watchdog_service\manifest
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (auto_engage), using default: True
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (clear_figure_after_save), using default: True
03:16:16 PM:WARNING:Foraging:Foraging.py:_GetSettings:line 1249:Missing setting (add_default_project_name), using default: True
03:16:16 PM:INFO:Foraging:Foraging.py:_LoadSchedule:line 1137:Loaded behavior schedule
03:16:16 PM:INFO:Foraging:Foraging.py:_GetWaterCalibration:line 1101:Loaded Water Calibration
03:16:16 PM:INFO:Foraging:Foraging.py:_load_most_recent_rig_json:line 1571:Found existing rig.json: rig_447-3-D_2024-12-03_10_00_25.json
03:16:16 PM:INFO:RigJsonBuilder:RigJsonBuilder.py:build_rig_json_core:line 60:building rig json
03:16:16 PM:INFO:RigJsonBuilder:RigJsonBuilder.py:build_rig_json_core:line 624:finished building rig json
03:16:16 PM:INFO:RigJsonBuilder:RigJsonBuilder.py:build_rig_json:line 42:differences with existing rig json: {'values_changed': {"root['daqs'][3]": {'new_value': {'device_type': 'Harp device', 'name': 'harp sound amplifier', 'serial_number': None, 'manufacturer': {'name': 'Champalimaud Foundation', 'abbreviation': 'Champalimaud', 'registry': {'name': 'Research Organization Registry', 'abbreviation': 'ROR'}, 'registry_identifier': '03g001n57'}, 'model': None, 'path_to_cad': None, 'port_index': None, 'additional_settings': {}, 'notes': None, 'data_interface': 'USB', 'computer_name': 'W10DT714030', 'channels': [], 'firmware_version': None, 'hardware_version': None, 'harp_device_type': {'name': 'Input Expander', 'whoami': 1106}, 'core_version': '', 'tag_version': None, 'is_clock_generator': False}, 'old_value': {'device_type': 'Harp device', 'name': 'Harp sound amplifier', 'serial_number': None, 'manufacturer': {'name': 'Champalimaud Foundation', 'abbreviation': 'Champalimaud', 'registry': {'name': 'Research Organization Registry', 'abbreviation': 'ROR'}, 'registry_identifier': '03g001n57'}, 'model': None, 'path_to_cad': None, 'port_index': None, 'additional_settings': {}, 'notes': None, 'data_interface': 'USB', 'computer_name': 'W10DT714030', 'channels': [], 'firmware_version': None, 'hardware_version': None, 'harp_device_type': {'name': 'Input Expander', 'whoami': 1106}, 'core_version': '', 'tag_version': None, 'is_clock_generator': False}}, "root['daqs'][2]": {'new_value': {'device_type': 'Harp device', 'name': 'harp clock synchronization board', 'serial_number': None, 'manufacturer': {'name': 'Champalimaud Foundation', 'abbreviation': 'Champalimaud', 'registry': {'name': 'Research Organization Registry', 'abbreviation': 'ROR'}, 'registry_identifier': '03g001n57'}, 'model': None, 'path_to_cad': None, 'port_index': None, 'additional_settings': {}, 'notes': None, 'data_interface': 'USB', 'computer_name': 'W10DT714030', 'channels': [], 'firmware_version': None, 'hardware_version': None, 'harp_device_type': {'name': 'Clock Synchronizer', 'whoami': 1152}, 'core_version': '', 'tag_version': None, 'is_clock_generator': True}, 'old_value': {'device_type': 'Harp device', 'name': 'Harp clock synchronization board', 'serial_number': None, 'manufacturer': {'name': 'Champalimaud Foundation', 'abbreviation': 'Champalimaud', 'registry': {'name': 'Research Organization Registry', 'abbreviation': 'ROR'}, 'registry_identifier': '03g001n57'}, 'model': None, 'path_to_cad': None, 'port_index': None, 'additional_settings': {}, 'notes': None, 'data_interface': 'USB', 'computer_name': 'W10DT714030', 'channels': [], 'firmware_version': None, 'hardware_version': None, 'harp_device_type': {'name': 'Clock Synchronizer', 'whoami': 1152}, 'core_version': '', 'tag_version': None, 'is_clock_generator': True}}, "root['daqs'][0]": {'new_value': {'device_type': 'Harp device', 'name': 'harp behavior board', 'serial_number': None, 'manufacturer': {'name': 'Champalimaud Foundation', 'abbreviation': 'Champalimaud', 'registry': {'name': 'Research Organization Registry', 'abbreviation': 'ROR'}, 'registry_identifier': '03g001n57'}, 'model': None, 'path_to_cad': None, 'port_index': None, 'additional_settings': {}, 'notes': 'Left lick spout and Right lick spout, as well as reward delivery solenoids are connected via ethernet cables', 'data_interface': 'Ethernet', 'computer_name': 'W10DT714030', 'channels': [{'channel_name': 'DI3', 'device_name': 'Photometry Clock', 'channel_type': 'Digital Input', 'port': None, 'channel_index': None, 'sample_rate': None, 'sample_rate_unit': 'hertz', 'event_based_sampling': None}], 'firmware_version': None, 'hardware_version': None, 'harp_device_type': {'name': 'Behavior', 'whoami': 1216}, 'core_version': '1.11', 'tag_version': None, 'is_clock_generator': False}, 'old_value': {'device_type': 'Harp device', 'name': 'Harp Behavior', 'serial_number': None, 'manufacturer': {'name': 'Champalimaud Foundation', 'abbreviation': 'Champalimaud', 'registry': {'name': 'Research Organization Registry', 'abbreviation': 'ROR'}, 'registry_identifier': '03g001n57'}, 'model': None, 'path_to_cad': None, 'port_index': None, 'additional_settings': {}, 'notes': 'Left lick spout and Right lick spout, as well as reward delivery solenoids are connected via ethernet cables', 'data_interface': 'Ethernet', 'computer_name': 'W10DT714030', 'channels': [{'channel_name': 'DI3', 'device_name': 'Photometry Clock', 'channel_type': 'Digital Input', 'port': None, 'channel_index': None, 'sample_rate': None, 'sample_rate_unit': 'hertz', 'event_based_sampling': None}], 'firmware_version': None, 'hardware_version': None, 'harp_device_type': {'name': 'Behavior', 'whoami': 1216}, 'core_version': '1.11', 'tag_version': None, 'is_clock_generator': False}}, "root['daqs'][1]": {'new_value': {'device_type': 'Harp device', 'name': 'harp sound card', 'serial_number': None, 'manufacturer': {'name': 'Champalimaud Foundation', 'abbreviation': 'Champalimaud', 'registry': {'name': 'Research Organization Registry', 'abbreviation': 'ROR'}, 'registry_identifier': '03g001n57'}, 'model': None, 'path_to_cad': None, 'port_index': None, 'additional_settings': {}, 'notes': None, 'data_interface': 'USB', 'computer_name': 'W10DT714030', 'channels': [], 'firmware_version': None, 'hardware_version': None, 'harp_device_type': {'name': 'Sound Card', 'whoami': 1280}, 'core_version': '1.4', 'tag_version': None, 'is_clock_generator': False}, 'old_value': {'device_type': 'Harp device', 'name': 'Harp Sound', 'serial_number': None, 'manufacturer': {'name': 'Champalimaud Foundation', 'abbreviation': 'Champalimaud', 'registry': {'name': 'Research Organization Registry', 'abbreviation': 'ROR'}, 'registry_identifier': '03g001n57'}, 'model': None, 'path_to_cad': None, 'port_index': None, 'additional_settings': {}, 'notes': None, 'data_interface': 'USB', 'computer_name': 'W10DT714030', 'channels': [], 'firmware_version': None, 'hardware_version': None, 'harp_device_type': {'name': 'Sound Card', 'whoami': 1280}, 'core_version': '1.4', 'tag_version': None, 'is_clock_generator': False}}}}
03:16:16 PM:INFO:RigJsonBuilder:RigJsonBuilder.py:build_rig_json:line 51:Saving new rig json: rig_447-3-D_2024-12-09_15_16_16.json
03:16:16 PM:INFO:Foraging:Foraging.py:_LoadUI:line 299:Using ForagingGUI.ui interface
03:16:16 PM:INFO:Foraging:Foraging.py:__init__:line 143:Setting Window title: 447-3-D
03:16:16 PM:INFO:Foraging:Foraging.py:_InitializeBonsai:line 1408:Trying to connect to already running Bonsai
03:16:16 PM:INFO:Foraging:Foraging.py:_ConnectOSC:line 1455:connecting to GUI and Bonsai through OSC
03:16:17 PM:INFO:Foraging:Foraging.py:_InitializeBonsai:line 1412:Could not connect: timed out
03:16:17 PM:INFO:Foraging:Foraging.py:_InitializeBonsai:line 1421:Starting Bonsai
03:16:17 PM:INFO:Foraging:Foraging.py:log_subprocess_output:line 4901:BONSAI logging starting
03:16:17 PM:INFO:Foraging:Foraging.py:_ConnectOSC:line 1455:connecting to GUI and Bonsai through OSC
03:16:18 PM:INFO:Foraging:Foraging.py:_InitializeBonsai:line 1435:Could not connect, total waiting time 0.5 seconds: timed out
03:16:19 PM:INFO:Foraging:Foraging.py:_ConnectOSC:line 1455:connecting to GUI and Bonsai through OSC
03:16:20 PM:INFO:Foraging:Foraging.py:_InitializeBonsai:line 1435:Could not connect, total waiting time 1.0 seconds: timed out
03:16:20 PM:INFO:Foraging:Foraging.py:_ConnectOSC:line 1455:connecting to GUI and Bonsai through OSC
03:16:21 PM:INFO:Foraging:Foraging.py:_InitializeBonsai:line 1435:Could not connect, total waiting time 1.5 seconds: timed out
03:16:22 PM:INFO:Foraging:Foraging.py:_ConnectOSC:line 1455:connecting to GUI and Bonsai through OSC
03:16:22 PM:INFO:Foraging:Foraging.py:_InitializeBonsai:line 1438:Connected to Bonsai after 2.0 seconds
03:16:22 PM:INFO:Foraging:Foraging.py:_InitializeBonsai:line 1439:Bonsai started successfully
03:16:22 PM:INFO:Foraging:Foraging.py:_ConnectSlims:line 1318:Attempting to connect to Slims
03:16:23 PM:INFO:Foraging:Foraging.py:_ConnectSlims:line 1335:Successfully connected to Slims
03:16:23 PM:WARNING:Dialogs:Dialogs.py:_LoadCalibrationParameters:line 480:could not find water calibration parameters: C:\Users\svc_aind_behavior\Documents\ForagingSettings\WaterCalibrationPar_4.json
03:16:23 PM:INFO:Foraging:Foraging.py:_InitializeMotorStage:line 912:Scanning for newscale stages
03:16:23 PM:INFO:Foraging:Foraging.py:_InitializeMotorStage:line 927:found 2 newscale stages
03:16:23 PM:INFO:Foraging:Foraging.py:_InitializeMotorStage:line 951:Found the newscale stage from the settings file
03:16:23 PM:INFO:Foraging:Foraging.py:_connect_stage:line 978:Successfully connected to newscale stage: 46114
03:16:23 PM:INFO:Foraging:Foraging.py:_CheckStageConnection:line 793:Checking stage connection
03:16:23 PM:INFO:Foraging:Foraging.py:_GetPositions:line 805:Grabbing current stage position
03:16:23 PM:INFO:Foraging:Foraging.py:_CheckStageConnection:line 793:Checking stage connection
03:16:23 PM:INFO:Foraging:Foraging.py:_GetPositions:line 805:Grabbing current stage position
03:16:23 PM:INFO:Foraging:Foraging.py:_CheckStageConnection:line 793:Checking stage connection
03:16:23 PM:INFO:Foraging:Foraging.py:_GetPositions:line 805:Grabbing current stage position
03:16:23 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1900:processing parameter changes
03:16:23 PM:INFO:Foraging:Foraging.py:_StopPhotometry:line 3512:Checking that photometry is not running
03:16:23 PM:INFO:Foraging:Foraging.py:_StopPhotometry:line 3522:Photometry excitation stopped
03:16:23 PM:INFO:Foraging:Foraging.py:_load_most_recent_rig_json:line 1571:Found existing rig.json: rig_447-3-D_2024-12-09_15_16_16.json
03:16:23 PM:INFO:Foraging:Foraging.py:__init__:line 243:Start up complete
03:16:25 PM:INFO:aws_util:aws_util.py:import_df_from_s3:line 115:Dataframe imported from s3://aind-behavior-data/foraging_nwb_bonsai_processed/df_sessions.pkl, len(df) = 5932
03:16:25 PM:INFO:aws_util:aws_util.py:import_df_from_s3:line 115:Dataframe imported from s3://aind-behavior-data/foraging_auto_training/df_manager_447_demo.pkl, len(df) = 4440
03:16:26 PM:INFO:aws_util:aws_util.py:download_dir_from_s3:line 140:134 objects downloaded from s3://aind-behavior-data/foraging_auto_training/saved_curriculums/ to C:\Users\svc_aind_behavior/capsule/scratch/saved_curriculums/
03:16:26 PM:INFO:curriculum_manager:curriculum_manager.py:download_curriculums:line 162:Found 29 curriculums in C:\Users\svc_aind_behavior/capsule/scratch/saved_curriculums/
03:16:27 PM:INFO:aws_util:aws_util.py:download_dir_from_s3:line 140:134 objects downloaded from s3://aind-behavior-data/foraging_auto_training/saved_curriculums/ to C:\Users\svc_aind_behavior/.aind_auto_train/curriculum_manager/
03:16:27 PM:INFO:curriculum_manager:curriculum_manager.py:download_curriculums:line 162:Found 29 curriculums in C:\Users\svc_aind_behavior/.aind_auto_train/curriculum_manager/
03:16:27 PM:INFO:Dialogs:Dialogs.py:update_auto_train_fields:line 2292:No entry found in df_training_manager for subject_id: 0
03:16:27 PM:INFO:Dialogs:Dialogs.py:_override_curriculum_clicked:line 2640:Override stage clicked: state=2
03:16:27 PM:INFO:Dialogs:Dialogs.py:_update_stage_to_apply:line 2666:Current stage to apply: unknown training stage @unknown curriculum
03:16:33 PM:INFO:Dialogs:Dialogs.py:update_auto_train_lock:line 2844:AutoTrain disengaged!
03:16:33 PM:INFO:Dialogs:Dialogs.py:update_auto_train_fields:line 2292:No entry found in df_training_manager for subject_id: 1
03:16:33 PM:INFO:Dialogs:Dialogs.py:_update_stage_to_apply:line 2666:Current stage to apply: unknown training stage @unknown curriculum
03:16:33 PM:INFO:Dialogs:Dialogs.py:update_auto_train_fields:line 2421:Auto engage successful for mouse 1
03:16:33 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1900:processing parameter changes
03:16:33 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1959:Changing parameter: RightValue, 0.03 -> 0.034
03:16:33 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1959:Changing parameter: LeftValue, 0.03 -> 0.035
03:16:33 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1959:Changing parameter: ID, 0.0 -> 1.0
03:16:33 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1959:Changing parameter: RightValue, 0.03 -> 0.034
03:16:33 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1959:Changing parameter: LeftValue, 0.03 -> 0.035
03:16:33 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1959:Changing parameter: GiveWaterL, 0.03 -> 0.035
03:16:33 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1959:Changing parameter: GiveWaterR, 0.03 -> 0.034
03:16:39 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1900:processing parameter changes
03:16:59 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/ManualLeftWaterStartTime', 3535828.718976, '127.0.0.1', 4033]
03:16:59 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/LeftRewardDeliveryTimeHarp', 3535828.723488, '127.0.0.1', 4033]
03:17:00 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/ManualLeftWaterStartTime', 3535829.94, '127.0.0.1', 4033]
03:17:00 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/LeftRewardDeliveryTimeHarp', 3535829.942496, '127.0.0.1', 4033]
03:17:01 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/ManualRightWaterStartTime', 3535830.729984, '127.0.0.1', 4033]
03:17:01 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/RightRewardDeliveryTimeHarp', 3535830.733504, '127.0.0.1', 4033]
03:17:01 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/ManualRightWaterStartTime', 3535831.560992, '127.0.0.1', 4033]
03:17:01 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/RightRewardDeliveryTimeHarp', 3535831.562496, '127.0.0.1', 4033]
03:17:11 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/ManualRightWaterStartTime', 3535841.125984, '127.0.0.1', 4033]
03:17:11 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/RightRewardDeliveryTimeHarp', 3535841.129504, '127.0.0.1', 4033]
03:17:12 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/ManualRightWaterStartTime', 3535842.236, '127.0.0.1', 4033]
03:17:12 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/RightRewardDeliveryTimeHarp', 3535842.238496, '127.0.0.1', 4033]
03:18:07 PM:INFO:Foraging:Foraging.py:_Start:line 3803:Start button pressed: starting trial loop
03:18:07 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1900:processing parameter changes
03:18:08 PM:INFO:Foraging:Foraging.py:_Start:line 3872:Starting session, with experimenter: Test
03:18:08 PM:INFO:Foraging:Foraging.py:_set_default_project:line 3740:Setting Project name: Behavior Platform
03:18:08 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1900:processing parameter changes
03:18:08 PM:INFO:Foraging:Foraging.py:keyPressEvent:line 1900:processing parameter changes
03:18:08 PM:INFO:Foraging:Foraging.py:_restartlogging:line 1034:Restarting logging
03:18:08 PM:INFO:Foraging:Foraging.py:_GetSaveFolder:line 2774:Created new folder: C:\behavior_data\447-3-D\1\behavior_1_2024-12-09_15-18-08
03:18:08 PM:INFO:Foraging:Foraging.py:_GetSaveFolder:line 2777:Created new folder: C:\behavior_data\447-3-D\1\behavior_1_2024-12-09_15-18-08\metadata-dir
03:18:08 PM:INFO:Foraging:Foraging.py:_GetSaveFolder:line 2780:Created new folder: C:\behavior_data\447-3-D\1\behavior_1_2024-12-09_15-18-08\behavior
03:18:08 PM:INFO:Foraging:Foraging.py:_GetSaveFolder:line 2783:Created new folder: C:\behavior_data\447-3-D\1\behavior_1_2024-12-09_15-18-08\behavior\raw.harp
03:18:08 PM:INFO:Foraging:Foraging.py:_GetSaveFolder:line 2786:Created new folder: C:\behavior_data\447-3-D\1\behavior_1_2024-12-09_15-18-08\behavior-videos
03:18:08 PM:INFO:Foraging:Foraging.py:_GetSaveFolder:line 2789:Created new folder: C:\behavior_data\447-3-D\1\behavior_1_2024-12-09_15-18-08\fib
03:18:08 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/loggerstarted', 'C:\\behavior_data\\447-3-D\\1\\behavior_1_2024-12-09_15-18-08\\behavior\\raw.harp', '127.0.0.1', 4032]
03:18:08 PM:INFO:Foraging:Foraging.py:_CheckStageConnection:line 793:Checking stage connection
03:18:08 PM:INFO:Foraging:Foraging.py:_GetPositions:line 805:Grabbing current stage position
03:18:08 PM:ERROR:Foraging:Foraging.py:_ShowRewardPairs:line 2260:Traceback (most recent call last):
  File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Foraging.py", line 2248, in _ShowRewardPairs
    + str(np.round(self.GeneratedTrials.B_RewardProHistory[:,self.GeneratedTrials.B_CurrentTrialN],2)))
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IndexError: index -1 is out of bounds for axis 1 with size 0
@alexpiet alexpiet added the low priority - auto-generated autogenerated issues that have only occurred once label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low priority - auto-generated autogenerated issues that have only occurred once
Projects
None yet
Development

No branches or pull requests

1 participant