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
b310015f
Commit
b310015f
authored
9 years ago
by
Andreas Freise
Browse files
Options
Downloads
Patches
Plain Diff
removing length tuning, as the example makes no real sense
parent
1057151d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/length_tuning.py
+0
-58
0 additions, 58 deletions
examples/length_tuning.py
with
0 additions
and
58 deletions
examples/length_tuning.py
deleted
100644 → 0
+
0
−
58
View file @
1057151d
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 10 14:18:17 2013
@author: Sean
"""
import
sys
sys
.
path
.
append
(
"
../
"
)
import
pykat
from
pykat.optics.gaussian_beams
import
gauss_param
import
pykat.finesse
as
finesse
from
pykat.commands
import
xaxis
import
pylab
as
pl
import
numpy
as
np
import
math
code
=
"""
%------------------------------------------------------------------------
% Finesse input file to plot the phase of light field reflected from a
% beam splitter to show the way lengths and positions are handled
% Andreas Freise 15.08.2009
%------------------------------------------------------------------------
l l1 1 0 n1 % laser with P=1W at the default frequency
s s1 1 1 n1 n2 % space of 1m length
bs b1 1 0 0 0 n2 n3 dump dump % beam splitter as `turning mirror
'
s s2 1 1 n3 n4 % another space of 1m length
ad ad1 0 n4 % amplitude detector
% for the plot we perform two sequenctial runs of Finesse
% 1) first trace: change microscopic position of beamsplitter
xaxis b1 phi lin 0 180 100
% 2) second trace: change length of space s1
% xaxis s1 L lin 1 2 100
yaxis deg % plotting the phase of the results
"""
kat
=
finesse
.
kat
()
kat
.
parseCommands
(
code
)
maxtem
=
np
.
arange
(
0
,
2
,
2
)
kat
.
trace
=
17
for
tem
in
maxtem
:
print
"
Calculating maxtem
"
,
tem
,
"
...
"
kat
.
maxtem
=
tem
r
=
kat
.
run
()
pl
.
plot
(
r
.
x
,
r
.
y
,
label
=
"
maxtem={0}
"
.
format
(
tem
))
pl
.
ylabel
(
"
Phase [deg]
"
)
pl
.
xlabel
(
"
Tuning [deg]
"
)
pl
.
legend
()
pl
.
show
()
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