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
I encountered a runtime error using the cli to retrieve the symbolic solution to a relatively simple netlist I created to test out the library. Upon closer inspection, I was able to bypass the error by replacing the sort key by key=str.
Traceback:
Starting symbolic AC analysis...
Building symbolic MNA, N and x... done.
Building equations...
Solving...
Success!
Results:
Traceback (most recent call last):
File "/home/jsillman/.local/bin/ahkab", line 8, in <module>
sys.exit(_cli())
File "/home/jsillman/.local/lib/python3.10/site-packages/ahkab/__main__.py", line 155, in _cli
ahkab.main(filename=remaning_args[0],
File "/home/jsillman/.local/lib/python3.10/site-packages/ahkab/ahkab.py", line 953, in main
results.update(run(circ, [an]))
File "/home/jsillman/.local/lib/python3.10/site-packages/ahkab/ahkab.py", line 714, in run
r = analysis[an_type](circ, **an_item)
File "/home/jsillman/.local/lib/python3.10/site-packages/ahkab/symbolic.py", line 193, in symbolic_analysis
printing.print_symbolic_results(sol)
File "/home/jsillman/.local/lib/python3.10/site-packages/ahkab/printing.py", line 282, in print_symbolic_results
keys.sort(lambda x, y: cmp(str(x), str(y)))
TypeError: sort() takes no positional arguments
I encountered a runtime error using the cli to retrieve the symbolic solution to a relatively simple netlist I created to test out the library. Upon closer inspection, I was able to bypass the error by replacing the sort key by
key=str
.Traceback:
After patching it in my local branch:
A few details about my runtime:
Let me know if there's any more information you need from me!
The text was updated successfully, but these errors were encountered: