Commit 8e2b56af authored by Daniel Brown's avatar Daniel Brown
Browse files

adding in direction data from beam trace

parent 13751d57
Pipeline #1780 failed with stage
in 19 seconds
...@@ -3,7 +3,7 @@ from __future__ import division ...@@ -3,7 +3,7 @@ from __future__ import division
from __future__ import print_function from __future__ import print_function
from __future__ import unicode_literals from __future__ import unicode_literals
__version__ = "1.0.16" __version__ = "1.0.17"
# This flag is used to switch on the gui features in pkat at import time # This flag is used to switch on the gui features in pkat at import time
USE_GUI = False USE_GUI = False
......
...@@ -1831,6 +1831,10 @@ class kat(object): ...@@ -1831,6 +1831,10 @@ 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]
traceData[-1][node_name][0].direction = direc
traceData[-1][node_name][1].direction = direc
finally: finally:
ifile.close() ifile.close()
......
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