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
Snippets
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
Sean Leavey
pykat
Commits
22c05c87
Commit
22c05c87
authored
8 years ago
by
Andreas Freise
Browse files
Options
Downloads
Patches
Plain Diff
updating FFT aLIGO example to work with current pykat
parent
62e4bea6
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
work_in_progress/aligo/FFT_ArmCavity_precompute.py
+2
-2
2 additions, 2 deletions
work_in_progress/aligo/FFT_ArmCavity_precompute.py
work_in_progress/aligo/FFT_ArmCavity_scan.py
+62
-59
62 additions, 59 deletions
work_in_progress/aligo/FFT_ArmCavity_scan.py
with
64 additions
and
61 deletions
work_in_progress/aligo/FFT_ArmCavity_precompute.py
+
2
−
2
View file @
22c05c87
...
...
@@ -15,7 +15,7 @@ from pykat.components import *
from
pykat.external.progressbar
import
ProgressBar
,
ETA
,
Percentage
,
Bar
,
Timer
from
pykat.optics.maps
import
*
from
pykat.optics.gaussian_beams
import
HG_
beam
,
beam_param
from
pykat.optics.gaussian_beams
import
HG_
mode
,
beam_param
from
pykat.optics.fft
import
*
#from pykat.tools.plotting.tools import plot_field, plot_propagation
...
...
@@ -95,7 +95,7 @@ def main():
# generate roughly mode-matched input beam
global
laser
gx
=
beam_param
(
w0
=
w0
,
z
=
z0
)
beam
=
HG_
beam
(
gx
,
gx
,
0
,
0
)
beam
=
HG_
mode
(
gx
,
gx
,
0
,
0
)
laser
=
beam
.
Unm
(
x
,
y
)
# some debugging plots
...
...
This diff is collapsed.
Click to expand it.
work_in_progress/aligo/FFT_ArmCavity_scan.py
+
62
−
59
View file @
22c05c87
...
...
@@ -10,11 +10,11 @@ import shelve
import
pykat
from
pykat.components
import
*
from
pykat.
utilitie
s.plotting
.tools
import
printPDF
#
from pykat.
tool
s.plotting import printPDF
from
pykat.external.progressbar
import
ProgressBar
,
ETA
,
Percentage
,
Bar
,
Timer
from
pykat.
utilities.plotting.tools
import
plot_setup
import
pykat.
plotting
from
pykat.optics.maps
import
*
from
pykat.optics.gaussian_beams
import
HG_
beam
,
beam_param
from
pykat.optics.gaussian_beams
import
HG_
mode
,
beam_param
from
pykat.optics.fft
import
*
from
aligo
import
*
...
...
@@ -35,6 +35,7 @@ def main():
#filename='fround_mode_matched_no_map.npy'
#filename='fround_mode_matched_10map.npy'
filename
=
'
fround-2014:12:29-19:55:28.npy
'
filename
=
'
fround-2016:10:21-16:10:14.npy
'
print
(
"
--- loading data from file {0} ---
"
.
format
(
filename
))
global
f_round
f_round
=
np
.
load
(
filename
)
...
...
@@ -77,7 +78,9 @@ def main():
np
.
savetxt
(
txtfile
,
power
,
fmt
=
'
%.18e
'
,
delimiter
=
'
'
)
# plot scan
ax
,
fig
=
plot_setup
()
#ax,fig=plot_setup()
fig
=
pykat
.
plotting
.
figure
()
ax
=
fig
.
add_subplot
(
111
)
ax
.
plot
(
power
)
ax
.
set_yscale
(
'
log
'
)
pl
.
draw
()
...
...
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