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
fde37877
Commit
fde37877
authored
Dec 20, 2014
by
Andreas Freise
Browse files
fixing imports to new locations
parent
d9fba5af
Changes
3
Hide whitespace changes
Inline
Side-by-side
pykat/optics/ABCD.py
View file @
fde37877
import
numpy
as
np
from
pykat.
utilities.
optics.gaussian_beams
import
gauss_param
from
pykat.optics.gaussian_beams
import
gauss_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
]))
...
...
pykat/optics/maps.py
View file @
fde37877
...
...
@@ -13,11 +13,11 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
pykat.
utilitie
s.romhom
import
makeReducedBasis
,
makeEmpiricalInterpolant
,
makeWeights
from
pykat.
optic
s.romhom
import
makeReducedBasis
,
makeEmpiricalInterpolant
,
makeWeights
from
scipy.interpolate
import
interp2d
import
numpy
as
np
import
math
from
pykat.
utilities
.zernike
import
*
from
pykat.
math
.zernike
import
*
class
surfacemap
(
object
):
def
__init__
(
self
,
name
,
maptype
,
size
,
center
,
step_size
,
scaling
,
data
=
None
):
...
...
pykat/optics/romhom.py
View file @
fde37877
...
...
@@ -125,7 +125,7 @@ def makeReducedBasis(x, isModeMatched=True, tolerance = 1e-12, sigma = 1, greedy
else
:
greedypts
=
'mismatched20.txt'
greedyfile
=
os
.
path
.
join
(
pykat
.
__path__
[
0
],
'
utilitie
s'
,
'greedypoints'
,
greedypts
)
greedyfile
=
os
.
path
.
join
(
pykat
.
__path__
[
0
],
'
optic
s'
,
'greedypoints'
,
greedypts
)
limits
=
np
.
loadtxt
(
greedyfile
,
usecols
=
(
1
,))[:
5
]
...
...
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