Commit b50d5725 authored by Andreas Freise's avatar Andreas Freise
Browse files

added method to reverse beam direction.

parent ab06a7ed
......@@ -145,6 +145,10 @@ class gauss_param(object):
def imag(self): return self.__q.imag
@imag.setter
def imag(self, value): self.__q.imag = SIfloat(value)
# reverse beam direction
def reverse(self):
self.__q = -1.0 * self.__q.real + 1j * self.__q.imag
class HG_gauss_beam(object):
......
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