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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sean Leavey
pykat
Commits
332a5f90
Commit
332a5f90
authored
Feb 26, 2014
by
Sean Leavey
Browse files
Options
Downloads
Patches
Plain Diff
Fixing cavity scan example due to changes to pd and xaxis
parent
c36617e5
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/cavity_scan.py
+7
-4
7 additions, 4 deletions
examples/cavity_scan.py
with
7 additions
and
4 deletions
examples/cavity_scan.py
+
7
−
4
View file @
332a5f90
...
@@ -7,11 +7,13 @@ Fabry-Perot cavity scan example.
...
@@ -7,11 +7,13 @@ Fabry-Perot cavity scan example.
laser ITM 10m cavity ETM photodiode
laser ITM 10m cavity ETM photodiode
The simulation sets up a parameter list in the form of a Python dictionary,
The simulation sets up a parameter list in the form of a Python dictionary,
then populates PyKat with the experimental setup directly (without using
then populates PyKat with the experimental setup directly.
a .kat file input - 100% PyKat).
The cavity is then scanned by tuning the ETM, and the results are plotted.
The cavity is then scanned by tuning the ETM, and the results are plotted.
Note that if you prefer, you can write directly in FINESSE code rather than
using PyKat to build the optical environment - see other examples.
Some terminology:
Some terminology:
ITM: initial test mass
ITM: initial test mass
...
@@ -277,8 +279,9 @@ kat.add(
...
@@ -277,8 +279,9 @@ kat.add(
# photodiode looking at cavity transmitted light
# photodiode looking at cavity transmitted light
kat
.
add
(
kat
.
add
(
pykat
.
detectors
.
p
hotodiode
(
pykat
.
detectors
.
p
d
(
'
pd1
'
,
'
pd1
'
,
0
,
'
n9
'
'
n9
'
)
)
)
)
...
@@ -297,7 +300,7 @@ kat.space1.n1.q = pykat.utilities.optics.gaussian_beams.gauss_param(q = 1.050412
...
@@ -297,7 +300,7 @@ kat.space1.n1.q = pykat.utilities.optics.gaussian_beams.gauss_param(q = 1.050412
##############################
##############################
# scan cavity from 0 to 360 degrees
# scan cavity from 0 to 360 degrees
kat
.
add
(
pykat
.
commands
.
xaxis
(
'
lin
'
,
[
0
,
360
],
kat
.
M_ETM_HR
,
kat
.
M_ETM_HR
.
phi
,
360
))
kat
.
add
(
pykat
.
commands
.
xaxis
(
'
lin
'
,
[
0
,
360
],
kat
.
M_ETM_HR
.
phi
,
360
))
# set maximum TEM mode to model
# set maximum TEM mode to model
kat
.
maxtem
=
3
kat
.
maxtem
=
3
...
...
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