Describe the bug
The "Extract pin type as python code" feature is generating invalid code.
Using the code generated by this feature leads to the following error:
> netlist.get_gate_by_id(1).get_type().get_pin_type("QN")
AttributeError: 'hal_py.GateType' object has no attribute 'get_pin_type'
At:
<string>(2): <module>
To Reproduce
Steps to reproduce the behavior:
Select any gate
In the "Selection Details" widget, open the "Pins" tab
Unfold any pin group
Right-click any pin in that pin group to bring up the context menu
Select "Extract pin type as python code"
Paste that code into the Python console and execute
AttributeError is raised
Expected behavior
The generated Python code should be valid.
Describe the bug The "Extract pin type as python code" feature is generating invalid code. Using the code generated by this feature leads to the following error:
To Reproduce Steps to reproduce the behavior:
AttributeError
is raisedExpected behavior The generated Python code should be valid.