AllenNeuralDynamics / AllenNeuralDynamics/python-newscale

Unprintable USBxpress exceptions

未关闭
#9 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
1
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**
We are using this repo in the behavior training room to move the lickspout stages. We occasionally get this error.
(1) the error itself is a problem, because it stops our ability to use the stages
(2) the fact that the error is "unprintable" is a problem because if you try to log the error in a try/except block you generate a new error.

**To Reproduce**
I cannot reproduce this error, but its happening about ~15 times a week in the training room

**Screenshots**
```
Traceback (most recent call last):
File "Foraging.py", line 413, in _StageSerialNum
self._connect_stage(instance)
File "Foraging.py", line 447, in _connect_stage
instance.io.open()
File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\lib\site-packages\newscale\usbxpress.py", line 356, in open
self._dll.SI_Open(ctypes.c_ulong(self.device_num), ctypes.byref(handle))
File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\lib\site-packages\newscale\usbxpress.py", line 61, in usbxpress_errcheck
raise USBXpressException("USBXpress runtime error: %r" % \
newscale.usbxpress.USBXpressException:
```

**Desktop (please complete the following information):**
- OS: Windows
- axes-on-target branch

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。