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

error message change

parent bd378f92
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ class gauss_param(object):
if "q" in kwargs:
self.__q = complex(kwargs["q"])
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:
......@@ -45,7 +45,7 @@ class gauss_param(object):
one_q = 1 / kwargs["rc"] - 1j * self.__lamda / (math.pi * self.__nr * kwargs["wz"]**2)
q = 1/one_q
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
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment