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
0c56ecc3
Commit
0c56ecc3
authored
Apr 19, 2016
by
Andreas Freise
Browse files
changing gauss_param to beam_param in ABCD code
parent
be683e58
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/optics/ABCD.py
View file @
0c56ecc3
import
numpy
as
np
from
pykat.optics.gaussian_beams
import
gauss
_param
from
pykat.optics.gaussian_beams
import
beam
_param
def
apply
(
ABCD
,
q1
,
n1
,
n2
):
return
gauss
_param
(
nr
=
n2
,
q
=
n2
*
(
ABCD
[
0
,
0
]
*
q1
/
float
(
n1
)
+
ABCD
[
0
,
1
])
/
(
ABCD
[
1
,
0
]
*
q1
/
float
(
n1
)
+
ABCD
[
1
,
1
]))
return
beam
_param
(
nr
=
n2
,
q
=
n2
*
(
ABCD
[
0
,
0
]
*
q1
/
float
(
n1
)
+
ABCD
[
0
,
1
])
/
(
ABCD
[
1
,
0
]
*
q1
/
float
(
n1
)
+
ABCD
[
1
,
1
]))
def
mirror_trans
(
n1
,
n2
,
Rc
):
return
np
.
matrix
([[
1.0
,
0.0
],[(
n2
-
n1
)
/
float
(
Rc
),
1.0
]])
...
...
Write
Preview
Supports
Markdown
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