Skip to content
Snippets Groups Projects
Commit 5fbe031d authored by Daniel Brown's avatar Daniel Brown
Browse files

retrace parsing wrong

parent df887d61
No related branches found
No related tags found
No related merge requests found
...@@ -285,10 +285,11 @@ class kat(object): ...@@ -285,10 +285,11 @@ class kat(object):
self.phase = int(v[1]) self.phase = int(v[1])
elif(first == "retrace"): elif(first == "retrace"):
v = line.split(" ") v = line.split(" ")
if len(v) != 2: if len(v) > 2:
raise pkex.BasePyKatException("Retrace command `{0}` is incorrect.".format(line)) raise pkex.BasePyKatException("Retrace command `{0}` is incorrect.".format(line))
else: elif len(v) == 2:
self.retrace = int(v[1]) self.retrace = v[1]
elif(first == "deriv_h"): elif(first == "deriv_h"):
v = line.split(" ") v = line.split(" ")
if len(v) != 2: if len(v) != 2:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment