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

error message change

parent bd378f92
...@@ -33,7 +33,7 @@ class gauss_param(object): ...@@ -33,7 +33,7 @@ class gauss_param(object):
if "q" in kwargs: if "q" in kwargs:
self.__q = complex(kwargs["q"]) self.__q = complex(kwargs["q"])
else: else:
raise pkex.BasePyKatException("Must specify: z and w0 or z and zr or rc and wz, to define the beam parameter") raise pkex.BasePyKatException("Must specify: z and w0 or z and zr or rc and wz or q, to define the beam parameter")
elif len(kwargs) == 2: elif len(kwargs) == 2:
...@@ -45,7 +45,7 @@ class gauss_param(object): ...@@ -45,7 +45,7 @@ class gauss_param(object):
one_q = 1 / kwargs["rc"] - 1j * self.__lamda / (math.pi * self.__nr * kwargs["wz"]**2) one_q = 1 / kwargs["rc"] - 1j * self.__lamda / (math.pi * self.__nr * kwargs["wz"]**2)
q = 1/one_q q = 1/one_q
else: else:
raise pkex.BasePyKatException("Must specify: z and w0 or z and zr or rc and wz, to define the beam parameter") raise pkex.BasePyKatException("Must specify: z and w0 or z and zr or rc and wz or q, to define the beam parameter")
self.__q = q self.__q = q
else: else:
......
Supports Markdown
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