This error is shown when the vna is not connected and no playback file is passed:
NanoVNA not found, is it connected? Entering playback mode.
Cannot set sweep in playback mode. Connect NanoVNA and restart.
Cannot calibrate in playback mode. Connect NanoVNA and restart.
Traceback (most recent call last):
File "/Users/teo/repos/picc/signal-processing/test_fourier.py", line 44, in
for s11, s21 in stream:
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pynanovna/pynanovna.py", line 104, in stream_data
self._stream_data()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pynanovna/pynanovna.py", line 132, in _stream_data
self.worker.sweep.set_mode("CONTINOUS")
^^^^^^^^^^^
AttributeError: 'NanoVNAWorker' object has no attribute 'worker'
This is not clear and should be changed to something more informative.
This error is shown when the vna is not connected and no playback file is passed:
NanoVNA not found, is it connected? Entering playback mode. Cannot set sweep in playback mode. Connect NanoVNA and restart. Cannot calibrate in playback mode. Connect NanoVNA and restart. Traceback (most recent call last): File "/Users/teo/repos/picc/signal-processing/test_fourier.py", line 44, in
for s11, s21 in stream:
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pynanovna/pynanovna.py", line 104, in stream_data
self._stream_data()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pynanovna/pynanovna.py", line 132, in _stream_data
self.worker.sweep.set_mode("CONTINOUS")
^^^^^^^^^^^
AttributeError: 'NanoVNAWorker' object has no attribute 'worker'
This is not clear and should be changed to something more informative.