diff --git a/pykat/commands.py b/pykat/commands.py index 91901b93a1f147d3cc82c4ddf77fafeb00d6480b..bd54b08c322e707ad6086356a148a4ba849ffc28 100644 --- a/pykat/commands.py +++ b/pykat/commands.py @@ -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 ""