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

adding in direction data from beam trace

parent 13751d57
Branches
No related tags found
No related merge requests found
Pipeline #
......@@ -3,7 +3,7 @@ from __future__ import division
from __future__ import print_function
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
USE_GUI = False
......
......@@ -1831,6 +1831,10 @@ class kat(object):
traceData[-1][node_name] = (pykat.BeamParam(q=complex(qx), wavelength=self.lambda0),
pykat.BeamParam(q=complex(qy), wavelength=self.lambda0),
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:
ifile.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment