Commit 89608943 authored by Daniel Brown's avatar Daniel Brown
Browse files

Fixing python 2 split call error for getTraceData

parent e29ae803
Pipeline #1781 passed with stage
in 20 seconds
...@@ -1841,7 +1841,7 @@ class kat(object): ...@@ -1841,7 +1841,7 @@ class kat(object):
traceData[-1][node_name] = (pykat.BeamParam(q=complex(qx), wavelength=self.lambda0), traceData[-1][node_name] = (pykat.BeamParam(q=complex(qx), wavelength=self.lambda0),
pykat.BeamParam(q=complex(qy), wavelength=self.lambda0), pykat.BeamParam(q=complex(qy), wavelength=self.lambda0),
component_name) component_name)
direc = a[1].split(";")[-1].strip().split(maxsplit=1)[-1] direc = a[1].split(";")[-1].strip().split(None, 1)[-1]
traceData[-1][node_name][0].direction = direc traceData[-1][node_name][0].direction = direc
traceData[-1][node_name][1].direction = direc traceData[-1][node_name][1].direction = direc
......
Markdown is supported
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