CRASHES
#160
Replies: 1 comment 1 reply
-
Indeed that part of the code is not statically typed-checked, and the function returns a tuple of 4 elements. You should be able to fix it as: _, ac["HPL"], ac["RCu"], ac["RCv"] = pms.adsb.nuc_p(msg) I am not doing it right now as I have to focus on more urgent tasks and would prefer the full script to be typed-checked on next commit. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi again
It crashes when messages arrives
(ValueError('too many values to unpack (expected 3)'), 'Traceback (most recent call last):\n File "/home/oscar/miniconda3/lib/python3.11/site-packages/pyModeS/streamer/decode.py", line 278, in run\n self.process_raw(\n File "/home/oscar/miniconda3/lib/python3.11/site-packages/pyModeS/streamer/decode.py", line 158, in process_raw\n ac["HPL"], ac["RCu"], ac["RCv"] = pms.adsb.nuc_p(msg)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nValueError: too many values to unpack (expected 3)\n')
Beta Was this translation helpful? Give feedback.
All reactions