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

radicl crashes when attempting to save data and probe data is empty #8

Closed
arothenbuhler opened this issue Mar 1, 2020 · 0 comments
Closed
Assignees

Comments

@arothenbuhler
Copy link

  • radicl version: 0.3.2
  • Firmware version (if applicable): 1.45
  • Python version: 3.6
  • Operating System: Windows

Description

When the probe communication fails or the received data is empty, radicl crashes when attempting to save the data to file. While the probe communication shouldn't fail, radicl should probably catch this case and recover more gracefully

What I Did

Take a measurement and writing it to a file

Press enter to use default:
(Default: ././2020-02-29--184726.csv.csv)
radicl.radicl INFO Saving Data to :
C:\Users\arothenbuhler\2020-02-29--184726.csv
Traceback (most recent call last):
File "C:\Users\arothenbuhler\AppData\Local\Programs\Python\Python36\Scripts\radicl-script.py", line 11, in
load_entry_point('radicl==0.3.2', 'console_scripts', 'radicl')()
File "C:\Users\arothenbuhler\AppData\Local\Programs\Python\Python36\lib\site-packages\radicl-0.3.2-py3.6.egg\radicl\cli.py", line 72, in main
cli.run()
File "C:\Users\arothenbuhler\AppData\Local\Programs\Python\Python36\lib\site-packages\radicl-0.3.2-py3.6.egg\radicl\radicl.py", line 106, in run
self.tasking()
File "C:\Users\arothenbuhler\AppData\Local\Programs\Python\Python36\lib\site-packages\radicl-0.3.2-py3.6.egg\radicl\radicl.py", line 123, in tasking
fn()
File "C:\Users\arothenbuhler\AppData\Local\Programs\Python\Python36\lib\site-packages\radicl-0.3.2-py3.6.egg\radicl\radicl.py", line 284, in task_daq
if not self.data.empty:
AttributeError: 'NoneType' object has no attribute 'empty'

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