Commit 2d1b8f91 authored by Phil Jones's avatar Phil Jones

Add ignored finesse3 file, and fix yaxis abs:deg.

parent 8bf29af0
......@@ -56,6 +56,10 @@ def prepkat(katfile):
def runkat(katfile):
""" Run the katfile """
ignored_files = ["scav2.kat"]
for file in ignored_files:
if katfile.endswith(file):
raise Exception("Known bad file '%s', ignoring..." % katfile)
print('Prepping kat file')
katstr = prepkat(katfile)
......@@ -106,11 +110,12 @@ def runkat(katfile):
if isinstance(el, finesse.detectors.Detector):
d = np.array(out[name]).flatten()
if ifo.model.yaxis is not None:
if ifo.model.yaxis["axes"] == "abs":
d = np.abs(d)
elif ifo.model.yaxis["axes"] == "deg":
d = np.angle(d, deg=True)
data.append(d)
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))
else:
data.append(d)
outfile.extend(data)
katdir=path.dirname(katfile)
......
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