TheDeanLab / navigate

navigate - open source light-sheet microscope controls
https://thedeanlab.github.io/navigate/
Other
18 stars 5 forks source link

Low-Frequency Multi-Position Table Error #911

Closed AdvancedImagingUTSW closed 2 months ago

AdvancedImagingUTSW commented 2 months ago

This exception showed up after imaging 400 tiles in the multi-position mode. It was non-fatal.

ROBOTIS dll Loaded
Mesoscale: Stage axes mapping is not specified in the configuration file, will use default settings!
Nanoscale: Stage axes mapping is not specified in the configuration file, will use default settings!
Nanoscale: Stage axes mapping is not specified in the configuration file, will use default settings!
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3361, in get_loc
    return self._engine.get_loc(casted_key)
  File "pandas\_libs\index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\hashtable_class_helper.pxi", line 2131, in pandas._libs.hashtable.Int64HashTable.get_item
  File "pandas\_libs\hashtable_class_helper.pxi", line 2140, in pandas._libs.hashtable.Int64HashTable.get_item
KeyError: 0

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\tkinter\__init__.py", line 1892, in __call__
    return self.func(*args)
  File "C:\Users\DeanLab\Desktop\GitHub\navigate\src\navigate\controller\sub_controllers\multi_position_controller.py", line 157, in handle_double_click
    temp = list(df.loc[rowclicked])
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 931, in __getitem__
    return self._getitem_axis(maybe_callable, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1164, in _getitem_axis
    return self._get_label(key, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1113, in _get_label
    return self.obj.xs(label, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\generic.py", line 3776, in xs
    loc = index.get_loc(key)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3363, in get_loc
    raise KeyError(key) from err
KeyError: 0
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3361, in get_loc
    return self._engine.get_loc(casted_key)
  File "pandas\_libs\index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\hashtable_class_helper.pxi", line 2131, in pandas._libs.hashtable.Int64HashTable.get_item
  File "pandas\_libs\hashtable_class_helper.pxi", line 2140, in pandas._libs.hashtable.Int64HashTable.get_item
KeyError: 0

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\tkinter\__init__.py", line 1892, in __call__
    return self.func(*args)
  File "C:\Users\DeanLab\Desktop\GitHub\navigate\src\navigate\controller\sub_controllers\multi_position_controller.py", line 157, in handle_double_click
    temp = list(df.loc[rowclicked])
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 931, in __getitem__
    return self._getitem_axis(maybe_callable, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1164, in _getitem_axis
    return self._get_label(key, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1113, in _get_label
    return self.obj.xs(label, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\generic.py", line 3776, in xs
    loc = index.get_loc(key)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3363, in get_loc
    raise KeyError(key) from err
KeyError: 0
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3361, in get_loc
    return self._engine.get_loc(casted_key)
  File "pandas\_libs\index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\hashtable_class_helper.pxi", line 2131, in pandas._libs.hashtable.Int64HashTable.get_item
  File "pandas\_libs\hashtable_class_helper.pxi", line 2140, in pandas._libs.hashtable.Int64HashTable.get_item
KeyError: 0

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\tkinter\__init__.py", line 1892, in __call__
    return self.func(*args)
  File "C:\Users\DeanLab\Desktop\GitHub\navigate\src\navigate\controller\sub_controllers\multi_position_controller.py", line 157, in handle_double_click
    temp = list(df.loc[rowclicked])
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 931, in __getitem__
    return self._getitem_axis(maybe_callable, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1164, in _getitem_axis
    return self._get_label(key, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1113, in _get_label
    return self.obj.xs(label, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\generic.py", line 3776, in xs
    loc = index.get_loc(key)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3363, in get_loc
    raise KeyError(key) from err
KeyError: 0
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3361, in get_loc
    return self._engine.get_loc(casted_key)
  File "pandas\_libs\index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\hashtable_class_helper.pxi", line 2131, in pandas._libs.hashtable.Int64HashTable.get_item
  File "pandas\_libs\hashtable_class_helper.pxi", line 2140, in pandas._libs.hashtable.Int64HashTable.get_item
KeyError: 0

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\tkinter\__init__.py", line 1892, in __call__
    return self.func(*args)
  File "C:\Users\DeanLab\Desktop\GitHub\navigate\src\navigate\controller\sub_controllers\multi_position_controller.py", line 157, in handle_double_click
    temp = list(df.loc[rowclicked])
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 931, in __getitem__
    return self._getitem_axis(maybe_callable, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1164, in _getitem_axis
    return self._get_label(key, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1113, in _get_label
    return self.obj.xs(label, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\generic.py", line 3776, in xs
    loc = index.get_loc(key)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3363, in get_loc
    raise KeyError(key) from err
KeyError: 0
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3361, in get_loc
    return self._engine.get_loc(casted_key)
  File "pandas\_libs\index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\hashtable_class_helper.pxi", line 2131, in pandas._libs.hashtable.Int64HashTable.get_item
  File "pandas\_libs\hashtable_class_helper.pxi", line 2140, in pandas._libs.hashtable.Int64HashTable.get_item
KeyError: 0

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\tkinter\__init__.py", line 1892, in __call__
    return self.func(*args)
  File "C:\Users\DeanLab\Desktop\GitHub\navigate\src\navigate\controller\sub_controllers\multi_position_controller.py", line 157, in handle_double_click
    temp = list(df.loc[rowclicked])
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 931, in __getitem__
    return self._getitem_axis(maybe_callable, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1164, in _getitem_axis
    return self._get_label(key, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1113, in _get_label
    return self.obj.xs(label, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\generic.py", line 3776, in xs
    loc = index.get_loc(key)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3363, in get_loc
    raise KeyError(key) from err
KeyError: 0
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3361, in get_loc
    return self._engine.get_loc(casted_key)
  File "pandas\_libs\index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\hashtable_class_helper.pxi", line 2131, in pandas._libs.hashtable.Int64HashTable.get_item
  File "pandas\_libs\hashtable_class_helper.pxi", line 2140, in pandas._libs.hashtable.Int64HashTable.get_item
KeyError: 1

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\tkinter\__init__.py", line 1892, in __call__
    return self.func(*args)
  File "C:\Users\DeanLab\Desktop\GitHub\navigate\src\navigate\controller\sub_controllers\multi_position_controller.py", line 157, in handle_double_click
    temp = list(df.loc[rowclicked])
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 931, in __getitem__
    return self._getitem_axis(maybe_callable, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1164, in _getitem_axis
    return self._get_label(key, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1113, in _get_label
    return self.obj.xs(label, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\generic.py", line 3776, in xs
    loc = index.get_loc(key)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3363, in get_loc
    raise KeyError(key) from err
KeyError: 1
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3361, in get_loc
    return self._engine.get_loc(casted_key)
  File "pandas\_libs\index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\hashtable_class_helper.pxi", line 2131, in pandas._libs.hashtable.Int64HashTable.get_item
  File "pandas\_libs\hashtable_class_helper.pxi", line 2140, in pandas._libs.hashtable.Int64HashTable.get_item
KeyError: 1

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\tkinter\__init__.py", line 1892, in __call__
    return self.func(*args)
  File "C:\Users\DeanLab\Desktop\GitHub\navigate\src\navigate\controller\sub_controllers\multi_position_controller.py", line 157, in handle_double_click
    temp = list(df.loc[rowclicked])
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 931, in __getitem__
    return self._getitem_axis(maybe_callable, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1164, in _getitem_axis
    return self._get_label(key, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1113, in _get_label
    return self.obj.xs(label, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\generic.py", line 3776, in xs
    loc = index.get_loc(key)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3363, in get_loc
    raise KeyError(key) from err
KeyError: 1
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3361, in get_loc
    return self._engine.get_loc(casted_key)
  File "pandas\_libs\index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\hashtable_class_helper.pxi", line 2131, in pandas._libs.hashtable.Int64HashTable.get_item
  File "pandas\_libs\hashtable_class_helper.pxi", line 2140, in pandas._libs.hashtable.Int64HashTable.get_item
KeyError: 0

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\tkinter\__init__.py", line 1892, in __call__
    return self.func(*args)
  File "C:\Users\DeanLab\Desktop\GitHub\navigate\src\navigate\controller\sub_controllers\multi_position_controller.py", line 157, in handle_double_click
    temp = list(df.loc[rowclicked])
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 931, in __getitem__
    return self._getitem_axis(maybe_callable, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1164, in _getitem_axis
    return self._get_label(key, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1113, in _get_label
    return self.obj.xs(label, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\generic.py", line 3776, in xs
    loc = index.get_loc(key)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3363, in get_loc
    raise KeyError(key) from err
KeyError: 0
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3361, in get_loc
    return self._engine.get_loc(casted_key)
  File "pandas\_libs\index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\hashtable_class_helper.pxi", line 2131, in pandas._libs.hashtable.Int64HashTable.get_item
  File "pandas\_libs\hashtable_class_helper.pxi", line 2140, in pandas._libs.hashtable.Int64HashTable.get_item
KeyError: 1

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\tkinter\__init__.py", line 1892, in __call__
    return self.func(*args)
  File "C:\Users\DeanLab\Desktop\GitHub\navigate\src\navigate\controller\sub_controllers\multi_position_controller.py", line 157, in handle_double_click
    temp = list(df.loc[rowclicked])
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 931, in __getitem__
    return self._getitem_axis(maybe_callable, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1164, in _getitem_axis
    return self._get_label(key, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexing.py", line 1113, in _get_label
    return self.obj.xs(label, axis=axis)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\generic.py", line 3776, in xs
    loc = index.get_loc(key)
  File "C:\Users\DeanLab\.conda\envs\navigate\lib\site-packages\pandas\core\indexes\base.py", line 3363, in get_loc
    raise KeyError(key) from err
KeyError: 1

model_debug - nothing useful:

2024-06-04 11:34:15,217 - model - DEBUG - common_features: *** Zstack move stage: (z: 27463.579999999998), (f: 59852.8)
2024-06-04 11:34:15,393 - model - INFO - model: Navigate Model - Sent through pipe97
2024-06-04 11:34:15,614 - model - INFO - model: Navigate Model - Running data process, get frames [98]
2024-06-04 11:34:15,630 - model - DEBUG - feature_container: running signal node: ZStackAcquisition
2024-06-04 11:34:15,631 - model - DEBUG - feature_container: running signal node: ZStackAcquisition
2024-06-04 11:34:15,631 - model - DEBUG - common_features: *** Zstack move stage: (z: 27468.579999999998), (f: 59852.8)
2024-06-04 11:34:15,808 - model - INFO - model: Navigate Model - Sent through pipe98
2024-06-04 11:34:16,028 - model - INFO - model: Navigate Model - Running data process, get frames [99]
2024-06-04 11:34:16,044 - model - DEBUG - feature_container: running signal node: ZStackAcquisition
2024-06-04 11:34:16,070 - model - DEBUG - feature_container: running signal node: StackPause
2024-06-04 11:34:16,070 - model - DEBUG - feature_container: running signal node: LoopByCount
2024-06-04 11:34:16,251 - model - INFO - model: Navigate Model - Sent through pipe99
2024-06-04 11:34:16,251 - model - INFO - model: Navigate Model - Data thread stopped.
2024-06-04 11:34:16,252 - model - INFO - model: Navigate Model - Received frames in total: 8000
2024-06-04 11:34:16,396 - model - DEBUG - laser_shutter_ttl: ShutterTTL - The shutter is closed
2024-06-04 12:17:56,633 - model - DEBUG - laser_shutter_ttl: ShutterTTL - Shutter opened
2024-06-04 12:17:57,141 - model - DEBUG - feature_container: running signal node: PrepareNextChannel
2024-06-04 12:17:57,166 - model - DEBUG - filter_wheel_sutter: SutterFilterWheel - Moving to Position 0
2024-06-04 12:17:57,167 - model - DEBUG - filter_wheel_sutter: SutterFilterWheel - Moving to Position 1
2024-06-04 12:17:57,292 - model - INFO - daq_ni: Waveform Template Name: Default
2024-06-04 12:17:57,310 - model - INFO - daq_ni: Waveform Expand Num = 1
2024-06-04 12:17:57,310 - model - INFO - daq_ni: Waveform Repeat Num = 1
2024-06-04 12:17:57,480 - model - DEBUG - feature_container: running signal node: LoopByCount
2024-06-04 12:17:57,644 - model - DEBUG - HamamatsuAPI: error message: -2147483386

model_info - nothing useful:

2024-06-04 11:34:16,028 - model - INFO - model: Navigate Model - Running data process, get frames [99]
2024-06-04 11:34:16,251 - model - INFO - model: Navigate Model - Sent through pipe99
2024-06-04 11:34:16,251 - model - INFO - model: Navigate Model - Data thread stopped.
2024-06-04 11:34:16,252 - model - INFO - model: Navigate Model - Received frames in total: 8000

view_controller_debug - nothing useful:

2024-06-04 11:34:16,252 - controller - INFO - controller: Navigate Controller - Received Image: 99
2024-06-04 11:34:16,317 - controller - INFO - controller: Navigate Controller - Received Image: stop
2024-06-04 11:34:16,318 - controller - INFO - controller: Navigate Controller - Captured 7999, z-stack Images
2024-06-04 11:34:16,408 - controller - INFO - gui_controller: ChannelsTabController : ('timepoint settings on channels tab have been changed and recalculated',)
2024-06-04 11:34:16,410 - controller - INFO - gui_controller: ChannelsTabController : ('Multi-position:', True)
2024-06-04 11:34:16,410 - controller - INFO - gui_controller: ChannelsTabController : ('acquisition mode has been changed to', 'stop')
2024-06-04 12:17:54,771 - controller - INFO - gui_controller: AcquireBarController : ('The Microscope State is now:', 'live')
2024-06-04 12:17:54,789 - controller - INFO - gui_controller: ChannelsTabController : ('timepoint settings on channels tab have been changed and recalculated',)
2024-06-04 12:17:54,790 - controller - INFO - gui_controller: ChannelsTabController : ('Multi-position:', True)
2024-06-04 12:17:54,791 - controller - INFO - gui_controller: ChannelsTabController : ('acquisition mode has been changed to', 'stop')
2024-06-04 12:17:56,377 - controller - INFO - gui_controller: ChannelsTabController : ('acquisition mode has been changed to', 'live')
2024-06-04 12:17:56,390 - controller - INFO - controller: Navigate Controller - command passed from child, acquire, ()
2024-06-04 12:17:56,575 - controller - INFO - gui_controller: StageController : ('Set stage position',)