Skip to content
GitLab
Menu
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
7bfb9432
Commit
7bfb9432
authored
Jan 09, 2014
by
Andreas Freise
Browse files
renaming gauss.wz to gauss.w, this is more common.
parent
58032632
Changes
2
Show whitespace changes
Inline
Side-by-side
examples/gauss_param.py
View file @
7bfb9432
...
...
@@ -10,6 +10,6 @@ q2 = apply(abcd, q1, nr1, nr2)
# and out again
q3
=
apply
(
abcd
,
q2
,
nr2
,
nr1
)
print
"q1 ="
,
q1
,
" w0 ="
,
q1
.
w0
,
" w
z
="
,
q1
.
w
z
,
" z ="
,
q1
.
z
print
"q2 ="
,
q2
,
" w0 ="
,
q2
.
w0
,
" w
z
="
,
q2
.
w
z
,
" z ="
,
q2
.
z
print
"q3 ="
,
q3
,
" w0 ="
,
q3
.
w0
,
" w
z
="
,
q3
.
w
z
,
" z ="
,
q3
.
z
print
"q1 ="
,
q1
,
" w0 ="
,
q1
.
w0
,
" w ="
,
q1
.
w
,
" z ="
,
q1
.
z
print
"q2 ="
,
q2
,
" w0 ="
,
q2
.
w0
,
" w ="
,
q2
.
w
,
" z ="
,
q2
.
z
print
"q3 ="
,
q3
,
" w0 ="
,
q3
.
w0
,
" w ="
,
q3
.
w
,
" z ="
,
q3
.
z
pykat/utilities/optics/gaussian_beams.py
View file @
7bfb9432
...
...
@@ -68,7 +68,7 @@ class gauss_param(object):
def
zr
(
self
):
return
self
.
__q
.
imag
@
property
def
w
z
(
self
):
def
w
(
self
):
return
self
.
w0
*
math
.
sqrt
(
1
+
(
self
.
__q
.
real
/
self
.
__q
.
imag
)
**
2
)
@
property
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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