Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pykat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
finesse
pykat
Commits
fde37877
Commit
fde37877
authored
10 years ago
by
Andreas Freise
Browse files
Options
Downloads
Patches
Plain Diff
fixing imports to new locations
parent
d9fba5af
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
pykat/optics/ABCD.py
+1
-1
1 addition, 1 deletion
pykat/optics/ABCD.py
pykat/optics/maps.py
+2
-2
2 additions, 2 deletions
pykat/optics/maps.py
pykat/optics/romhom.py
+1
-1
1 addition, 1 deletion
pykat/optics/romhom.py
with
4 additions
and
4 deletions
pykat/optics/ABCD.py
+
1
−
1
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
]))
...
...
This diff is collapsed.
Click to expand it.
pykat/optics/maps.py
+
2
−
2
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
):
...
...
This diff is collapsed.
Click to expand it.
pykat/optics/romhom.py
+
1
−
1
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
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment