Commit 13f0ef45 authored by Jameson Graef Rollins's avatar Jameson Graef Rollins

quantum: fix Readout names and suppress deprecation warning

parent a41b1ff4
......@@ -81,18 +81,18 @@ def shotrad(f, ifo):
eta = eta_orig
if eta_orig is None:
raise Exception("must add Quadrature.dc or Readout...")
elif ifoRead.type == 'DC':
eta = np.sign(ifoRead.fringe_side) * np.arccos((ifoRead.defect_PWR_W / ifoRead.readout_PWR_W)**.5)
elif ifoRead.type == 'homodyne':
eta = ifoRead.homodyne_eta # Homodyne Readout phase
elif ifoRead.Type == 'DC':
eta = np.sign(ifoRead.fringe_side) * np.arccos((ifoRead.defect_PWR_W / ifoRead.readout_PWR_W)**.5)
elif ifoRead.Type == 'Homodyne':
eta = ifoRead.Angle
else:
raise Exception("Unknown Readout Type" % Nfield)
raise Exception("Unknown Readout Type")
if eta_orig is not None:
logging.warn((
'Quadrature.dc is redundant with '
'Squeezer.Readout and is deprecated.'
))
# logging.warn((
# 'Quadrature.dc is redundant with '
# 'Squeezer.Readout and is deprecated.'
# ))
if eta_orig != eta:
raise Exception("Quadrature.dc inconsistent with Readout eta")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment