Skip to content

Commit

Permalink
Print verbose info regarding circuit checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggventurini committed Feb 22, 2015
1 parent 374a43a commit ce90284
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ahkab/ahkab.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,11 +842,13 @@ def main(filename, outfile="stdout", verbose=3):
(circ, directives, postproc_direct) = netlist_parser.parse_circuit(
filename, read_netlist_from_stdin)

printing.print_info_line(("Checking circuit for common mistakes...", 6),
verbose, print_nl=False)
check, reason = utilities.check_circuit(circ)
if not check:
printing.print_general_error(reason)
print(circ)
sys.exit(3)
printing.print_info_line(("done.", 6), verbose)

if verbose > 3 or _print:
print("Parsed circuit:")
Expand Down

0 comments on commit ce90284

Please sign in to comment.