Skip to content

Commit

Permalink
Only try to wire __call__ *args if there's at least 1 input (handles …
Browse files Browse the repository at this point in the history
…case when there's only kwargs)
  • Loading branch information
leonardt committed Jul 26, 2018
1 parent 92b281e commit 02db34c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magma/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def __call__(input, *outputs, **kw):
no = len(outputs)
if len(outputs) == 1:
input.wire(outputs[0], debug_info)
else:
elif len(outputs) >= 1: # In case there are only kw
input.wireoutputs(outputs, debug_info)

# wire up extra arguments, name to name
Expand Down

0 comments on commit 02db34c

Please sign in to comment.