Skip to content
Snippets Groups Projects
Commit f3e92488 authored by Radek Hušek's avatar Radek Hušek
Browse files

voltage graphs: fix negative values

parent 0a393087
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ def _init_():
else:
for i in range(-a):
gadget.out(v if i == 0 else free_edges[i-1])
gadget.out(free_edges[i] if i < a - 1 else u)
gadget.out(free_edges[i] if i < abs(a) - 1 else u)
gadget = gadget.finish()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment