Commit 46d726a6 authored by Aaron Viets's avatar Aaron Viets
Browse files

gstlal-calibration plotting script update

parent 4a7ff96c
Pipeline #203355 failed with stages
in 9 minutes and 38 seconds
......@@ -350,7 +350,17 @@ for i in range(len(lines)):
fU = freqU[config_index]
# Read approximate TDCFs from the frames
frdump = os.popen('FrDump -d 4 -i %s' % lines[i].split('localhost')[1]).read()
# Try this first
frdump0 = os.popen('FrDump -d 4 -f %d -l %d -i %s' % (int(t), int(t), lines[i].split('localhost')[1])).read()
if 'Vector:%s:%sCALIB_KAPPA_TST_REAL%s' % (ifo, chan_prefixes[config_index], chan_suffixes[config_index]) in frdump0:
frdump = frdump0
else:
# Then try reading all the frames in the file
frdump0 = os.popen('FrDump -d 4 -i %s' % lines[i].split('localhost')[1]).read()
if 'Vector:%s:%sCALIB_KAPPA_TST_REAL%s' % (ifo, chan_prefixes[config_index], chan_suffixes[config_index]) in frdump0:
frdump = frdump0
# Otherwise frdump remains what it was before
ktstr = float(frdump.split('Vector:%s:%sCALIB_KAPPA_TST_REAL%s' % (ifo, chan_prefixes[config_index], chan_suffixes[config_index]))[1].split('mean ')[1].split(' ')[0])
ktsti = float(frdump.split('Vector:%s:%sCALIB_KAPPA_TST_IMAGINARY%s' % (ifo, chan_prefixes[config_index], chan_suffixes[config_index]))[1].split('mean ')[1].split(' ')[0])
kpumr = float(frdump.split('Vector:%s:%sCALIB_KAPPA_PUM_REAL%s' % (ifo, chan_prefixes[config_index], chan_suffixes[config_index]))[1].split('mean ')[1].split(' ')[0])
......
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