From d5ed2e10d71a320db091e8b1f7333c8df0bb4c8d Mon Sep 17 00:00:00 2001
From: Daniel Brown <ddb@star.sr.bham.ac.uk>
Date: Mon, 9 Dec 2013 11:05:01 +0000
Subject: [PATCH] error message change

---
 pykat/utilities/optics/gaussian_beams.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pykat/utilities/optics/gaussian_beams.py b/pykat/utilities/optics/gaussian_beams.py
index f5efa4c..f0e9f95 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:
-- 
GitLab