Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
finesse
pykat
Commits
d5ed2e10
Commit
d5ed2e10
authored
Dec 09, 2013
by
Daniel Brown
Browse files
error message change
parent
bd378f92
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/utilities/optics/gaussian_beams.py
View file @
d5ed2e10
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment