Commit 651dbe0d authored by Andreas Freise's avatar Andreas Freise
Browse files

fixing parsing error for gauss commands.

parent b518e8e8
......@@ -46,16 +46,13 @@ class gauss(object):
@staticmethod
def parseFinesseText(text, kat):
values = text.split()
if not values[0].startswith("gauss") or (len(values) != 6 and len(values != 8)):
if not values[0].startswith("gauss") or (len(values) != 6 and len(values) != 8):
raise exceptions.RuntimeError("'{0}' not a valid Finesse gauss command".format(text))
name = values[1]
component = values[2]
node = values[3]
if values[0].endswith("**"):
if len(values) == 6:
print ""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment