Skip to content

Commit 778032a

Browse files
committed
force trigger id all to have int type, to avoid a corner case that no trigger was found and then type is accidentally float
1 parent d978409 commit 778032a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/all_sky_search/pycbc_sngls_findtrigs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ data = {"stat": stat_all,
177177
"timeslide_id": np.zeros_like(stat_all),
178178
"template_id": template_ids_all,
179179
"%s/time" % ifo : trigger_times_all,
180-
"%s/trigger_id" % ifo: trigger_ids_all}
180+
"%s/trigger_id" % ifo: np.array(trigger_ids_all, dtype=int)}
181181

182182
logging.info("saving triggers")
183183
f = io.HFile(args.output_file, 'w')

0 commit comments

Comments
 (0)