Skip to content

Commit

Permalink
slightly streetfighting way to parse SPICE3 formatted netlists into c…
Browse files Browse the repository at this point in the history
…ompliance with ahkab's expectations
  • Loading branch information
itdaniher committed Aug 28, 2013
1 parent 8d9ceb3 commit 41ff065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netlist_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def get_next_file_and_close_current(file_list, file_index):
def parse_models(models_lines):
models = {}
for line, line_n in models_lines:
tokens = line.split()
tokens = line.replace("(","").replace(")", "").split()
if len(tokens) < 3:
raise NetlistParseError, ("Syntax error in model declaration on line " + str(line_n) + ".\n\t"+line,)
model_label = tokens[2]
Expand Down

1 comment on commit 41ff065

@ggventurini
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.