You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a node publishes a bitmask for the on the uavcan.node.port.List publishers topic, Yakut fails to handle it correctly.
However if i switch to a sparse list everything works fine.
This can be reproduced using the following command: yakut pub uavcan.node.port.List {}
As the default is a all false mask.
025-02-09 17:17:10 0059763 ERR pycyphal.util._broadcast: Unhandled exception in<bound method Avatar._on_trace of Avatar(node_id=42)>: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Traceback (most recent call last):
File "/home/opencyphal/.venv/lib/python3.12/site-packages/pycyphal/util/_broadcast.py", line 46, in delegate
r: typing.Union[R, Exception] = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/home/opencyphal/.venv/lib/python3.12/site-packages/yakut/cmd/monitor/_model.py", line 163, in _on_trace
handler(float(ts.monotonic), obj)
File "/home/opencyphal/.venv/lib/python3.12/site-packages/yakut/cmd/monitor/_model.py", line 100, in _on_port_list
self._ports.pub = expand_subjects(obj.publishers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/opencyphal/.venv/lib/python3.12/site-packages/yakut/cmd/monitor/_model.py", line 192, in expand_subjects
if m.mask:
^^^^^^
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
The text was updated successfully, but these errors were encountered:
When a node publishes a bitmask for the on the uavcan.node.port.List publishers topic, Yakut fails to handle it correctly.
However if i switch to a sparse list everything works fine.
This can be reproduced using the following command:
yakut pub uavcan.node.port.List {}
As the default is a all false mask.
OS: Ubuntu 24.04
Yakut Version: 0.13.0
Installation method: pip3
Error:
The text was updated successfully, but these errors were encountered: