Commit 3a22dd4
Fix error on yakut/cmd/monitor/_model.py (#108)
While passing a Node List (7519.List.1.0.dsdl) from a hardware node to
Ubuntu, yakut monitor produces the following error:
pycyphal.util._broadcast: Unhandled exception in <bound method
Avatar._on_trace of Avatar(node_id=219)>: The truth value of an array
with more than one element is ambiguous. Use a.any() or a.all()
File
"/home/$USER/.local/lib/python3.12/site-packages/yakut/cmd/monitor/_model.py",
line 195, 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 node list is produced using .h files produced by nnvg and the
"mask_bitpacked_" field is used instead of "sparse_list" The error is
solved by first checking that the mask is not None and then checking if
it is empty with .any().
---------
Authored-by" Vasileios Vasilopoulos<[email protected]>
Co-authored-by: Pavel Kirienko <[email protected]>1 parent 15949ea commit 3a22dd4
File tree
3 files changed
+10
-6
lines changed- .github/workflows
- yakut
- cmd/monitor
3 files changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
74 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
| 194 | + | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
0 commit comments