Maintenance will be performed on git.ligo.org, chat.ligo.org, containers.ligo.org, and docs.ligo.org on Tuesday 26 May 2020 starting at approximately 10am CDT. It is expected to take around 30 minutes and will involve a short period of downtime, around 5 minutes, towards the end of the maintenance period. Please address any questions, comments, or concerns to uwm-help@cgca.uwm.edu.

Commit e649f7fa authored by Phil Jones's avatar Phil Jones

Never print phase for powerdetector in finesse 3.

parent cb92f669
......@@ -109,11 +109,16 @@ def runkat(katfile):
for name, el in ifo.model.elements.items():
if isinstance(el, finesse.detectors.Detector):
d = np.array(out[name]).flatten()
if ifo.model.yaxis is not None:
if (not isinstance(el, finesse.detectors.PowerDetector)
and ifo.model.yaxis is not None):
if "abs" in ifo.model.yaxis["axes"]:
data.append(np.abs(d))
if "deg" in ifo.model.yaxis["axes"]:
data.append(np.angle(d, deg=True))
if "re" in ifo.model.yaxis["axes"]:
data.append(np.real(d))
if "im" in ifo.model.yaxis["axes"]:
data.append(np.imag(d))
else:
data.append(np.abs(d))
outfile.extend(data)
......
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