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

FATAL:ValueError: could not convert string to float: '' #716

Open
alexpiet opened this issue Sep 30, 2024 · 1 comment
Open

FATAL:ValueError: could not convert string to float: '' #716

alexpiet opened this issue Sep 30, 2024 · 1 comment
Assignees

Comments

@alexpiet
Copy link
Collaborator

This issue was automatically generated from GUI logs.

file: Foraging.py
function: exception_hook
line 4588
logfile: W10DT714030/W10DT714030-C_gui_log_2024-09-26_14-11-56.txt
boxes: 3C
count: 1
text: FATAL:ValueError: could not convert string to float: ''


Log context

03:33:57 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/ManualRightWaterStartTime', 4768406.649984, '127.0.0.1', 4023]
03:33:57 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/RightRewardDeliveryTimeHarp', 4768406.65248, '127.0.0.1', 4023]
03:33:57 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/ManualRightWaterStartTime', 4768406.770976, '127.0.0.1', 4023]
03:33:57 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/RightRewardDeliveryTimeHarp', 4768406.773504, '127.0.0.1', 4023]
03:33:57 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/ManualRightWaterStartTime', 4768406.892, '127.0.0.1', 4023]
03:33:57 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/RightRewardDeliveryTimeHarp', 4768406.894496, '127.0.0.1', 4023]
03:33:57 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/ManualRightWaterStartTime', 4768407.012, '127.0.0.1', 4023]
03:33:57 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/RightRewardDeliveryTimeHarp', 4768407.014496, '127.0.0.1', 4023]
03:33:57 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/ManualRightWaterStartTime', 4768407.132992, '127.0.0.1', 4023]
03:33:57 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/RightRewardDeliveryTimeHarp', 4768407.135488, '127.0.0.1', 4023]
03:33:57 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/ManualRightWaterStartTime', 4768407.252992, '127.0.0.1', 4023]
03:33:57 PM:INFO:rigcontrol:rigcontrol.py:msg_handler:line 56:['/RightRewardDeliveryTimeHarp', 4768407.255488, '127.0.0.1', 4023]
03:35:07 PM:ERROR:Foraging:Foraging.py:exception_hook:line 4588:FATAL ERROR: 
Traceback (most recent call last):
  File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Dialogs.py", line 707, in _StartCalibratingRight
    self._CalibrateRightOne()
  File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Dialogs.py", line 798, in _CalibrateRightOne
    tube_weight=float(self.WeightBeforeRight.text())
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: ''
@alexpiet
Copy link
Collaborator Author

alexpiet commented Oct 1, 2024

We should do input checking to make sure inputted weights are valid numbers before casting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants