Open bgodfrey opened 3 weeks ago
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:
tree_dict[bit_path]
if len(tree_dict[bit_path]) > 0:
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.
Assigning a few people to start the discussion, what is the best options with this one?
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:
tree_dict[bit_path]
as a listif len(tree_dict[bit_path]) > 0:
I think that this will fail for empty multidimensional arrays thoughtree_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.