Skip to content
Snippets Groups Projects
Commit aa1d52af authored by Andreas Freise's avatar Andreas Freise
Browse files

chaning more run to out.

parent 2a62fc59
No related branches found
No related tags found
No related merge requests found
...@@ -16,4 +16,4 @@ kat.HRBS.r_ap = 37e-2 ...@@ -16,4 +16,4 @@ kat.HRBS.r_ap = 37e-2
kat.parseCommands("pd pdIN nin") kat.parseCommands("pd pdIN nin")
kat.noxaxis = True kat.noxaxis = True
run = kat.run() out = kat.run()
...@@ -35,22 +35,22 @@ yaxis log re:im ...@@ -35,22 +35,22 @@ yaxis log re:im
""" """
kat = finesse.kat(kat_code=code) 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 # 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_up = out.y[:,0] + out.y[:,1]*1j
a_lo = run.y[:,2] + run.y[:,3]*-1j a_lo = out.y[:,2] + out.y[:,3]*-1j
pl.figure(1) pl.figure(1)
pl.loglog(run.x, np.abs(a_up + a_lo), run.x, np.abs((a_up - a_lo) / (1j))) pl.loglog(out.x, np.abs(a_up + a_lo), out.x, np.abs((a_up - a_lo) / (1j)))
pl.xlabel(run.xlabel) pl.xlabel(out.xlabel)
pl.title("Reflection quadratures with no relative carrier phase") pl.title("Reflection quadratures with no relative carrier phase")
pl.legend(["Amplitude","Phase"]) pl.legend(["Amplitude","Phase"])
pl.show() pl.show()
pl.figure(2) pl.figure(2)
pl.loglog(run.x, np.abs(a_up), run.x, np.abs(a_lo)) pl.loglog(out.x, np.abs(a_up), out.x, np.abs(a_lo))
pl.xlabel(run.xlabel) pl.xlabel(out.xlabel)
pl.title("Amplitude of reflected sidebands") pl.title("Amplitude of reflected sidebands")
pl.legend(["Upper","Lower"]) pl.legend(["Upper","Lower"])
pl.show() pl.show()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment