diff --git a/pykat/utilities/optics/gaussian_beams.py b/pykat/utilities/optics/gaussian_beams.py index f5efa4cc1422a211ec25424c146f7e0d7744bbf6..f0e9f9586c5bf41de9a3bf25a3dc184f8f7063dc 100644 --- a/pykat/utilities/optics/gaussian_beams.py +++ b/pykat/utilities/optics/gaussian_beams.py @@ -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: