-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
On line 426 of scripts/python/xml2vhdl-ox/xml2vhdl/helper/slave.py, there is the line:
if tree_dict[bit_path] != []:
This throws an exception if the object is not a list for Python version >= 3.12. A few ways to change it:
- Cast the
tree_dict[bit_path]as a list if len(tree_dict[bit_path]) > 0:
I think that this will fail for empty multidimensional arrays though- If you know that the array is a numpy array, then you change check if
tree_dict[bit_path].size > 0
There are probably more. Raising as an issue since I'm not sure how we want to (or if we want to) fix it.
Metadata
Metadata
Assignees
Labels
No labels