Skip to content
Snippets Groups Projects
Commit 651dbe0d authored by Andreas Freise's avatar Andreas Freise
Browse files

fixing parsing error for gauss commands.

parent b518e8e8
No related branches found
No related tags found
No related merge requests found
......@@ -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 ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment