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
aa1d52af
Commit
aa1d52af
authored
Nov 28, 2013
by
Andreas Freise
Browse files
chaning more run to out.
parent
2a62fc59
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/test_LLO.py
View file @
aa1d52af
...
...
@@ -16,4 +16,4 @@ kat.HRBS.r_ap = 37e-2
kat
.
parseCommands
(
"pd pdIN nin"
)
kat
.
noxaxis
=
True
run
=
kat
.
run
()
out
=
kat
.
run
()
bin/test_rad_pressure.py
View file @
aa1d52af
...
...
@@ -35,22 +35,22 @@ yaxis log re:im
"""
kat
=
finesse
.
kat
(
kat_code
=
code
)
run
=
kat
.
run
(
printout
=
0
,
printerr
=
0
)
out
=
kat
.
run
(
printout
=
0
,
printerr
=
0
)
# using real and imag part compute the complex value of the upper and lower sidebands
a_up
=
run
.
y
[:,
0
]
+
run
.
y
[:,
1
]
*
1j
a_lo
=
run
.
y
[:,
2
]
+
run
.
y
[:,
3
]
*-
1j
a_up
=
out
.
y
[:,
0
]
+
out
.
y
[:,
1
]
*
1j
a_lo
=
out
.
y
[:,
2
]
+
out
.
y
[:,
3
]
*-
1j
pl
.
figure
(
1
)
pl
.
loglog
(
run
.
x
,
np
.
abs
(
a_up
+
a_lo
),
run
.
x
,
np
.
abs
((
a_up
-
a_lo
)
/
(
1j
)))
pl
.
xlabel
(
run
.
xlabel
)
pl
.
loglog
(
out
.
x
,
np
.
abs
(
a_up
+
a_lo
),
out
.
x
,
np
.
abs
((
a_up
-
a_lo
)
/
(
1j
)))
pl
.
xlabel
(
out
.
xlabel
)
pl
.
title
(
"Reflection quadratures with no relative carrier phase"
)
pl
.
legend
([
"Amplitude"
,
"Phase"
])
pl
.
show
()
pl
.
figure
(
2
)
pl
.
loglog
(
run
.
x
,
np
.
abs
(
a_up
),
run
.
x
,
np
.
abs
(
a_lo
))
pl
.
xlabel
(
run
.
xlabel
)
pl
.
loglog
(
out
.
x
,
np
.
abs
(
a_up
),
out
.
x
,
np
.
abs
(
a_lo
))
pl
.
xlabel
(
out
.
xlabel
)
pl
.
title
(
"Amplitude of reflected sidebands"
)
pl
.
legend
([
"Upper"
,
"Lower"
])
pl
.
show
()
\ No newline at end of file
pl
.
show
()
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