Commit 029d8e28 authored by Qi Chu's avatar Qi Chu
Browse files

Merge branch 'spiir-review-O3' of https://git.ligo.org/lscsoft/spiir into spiir-review-O3

parents c3d43678 9224ae7f
......@@ -144,11 +144,6 @@ options, gid = parse_command_line()
if not os.path.exists('gracedb'):
os.mkdir('gracedb')
try:
os.mkdir('gracedb/' + gid)
except OSError:
pass
if options.verbose:
print("loading tables from event %s" %gid)
#
......@@ -161,6 +156,21 @@ sngl_inspiral_table = lsctables.SnglInspiralTable.get_table(xmldoc)
postcoh_table_row = postcoh_table_def.PostcohInspiralTable.get_table(xmldoc)[0]
process_params_table = lsctables.ProcessParamsTable.get_table(xmldoc)
event_ifos = "".join(coinc_inspiral_row.ifos.split(","))
#
# construct the trigger filename
# if no trigger file found in the run directory meaning the trigger is not produced from this run location,
# skip the following actions
#
trigger_fname = "%s_%s_%s_%s.xml" % (postcoh_table_row.ifos, postcoh_table_row.end_time, postcoh_table_row.bankid, postcoh_table_row.tmplt_idx)
if not os.path.exists(trigger_fname):
sys.exit(0) # not such trigger, exit this program
try:
os.mkdir('gracedb/' + gid)
except OSError:
pass
ifo_list = coinc_inspiral_row.ifos.split(",")
path = sngl_inspiral_table[0].search
for process_params in process_params_table:
......
......@@ -1674,7 +1674,7 @@ static void cuda_postcoh_process(GstCollectPads *pads, gint common_size, CudaPos
cur_ifo = 0;
for (int iifo = 0; iifo < state->nifo; ++iifo)
if (!state->cur_ifo_is_gap[iifo]) {
strncpy(state->cur_ifos + IFO_LEN* cur_ifo, IFOMap[iifo].name, sizeof(char) *IFO_LEN);
strncpy(state->cur_ifos + IFO_LEN* cur_ifo, IFOMap[state->write_ifo_mapping[iifo]].name, sizeof(char) *IFO_LEN);
cur_ifo ++;
}
......
......@@ -237,7 +237,7 @@ mynodename="postcohspiir"
onbits=290
# Use INTENT and HOFT_OK bits, do not use injection bits
onbits=3
V1onbits=2
V1onbits=515
if (( ${iflive} == 1 )); then
if (( ${ndet} == 2)); then
......
Supports Markdown
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