Retrieve the sets of instruments which were on during the search.
'''
# get instruments with sngl-sngl coincidences in zero lag
sngl_sngl_id,=connection.cursor().execute("SELECT coinc_def_id FROM coinc_definer WHERE search == 'inspiral' AND description == 'sngl_inspiral<-->sngl_inspiral coincidences';").fetchone()
time_slide_ids=[row[0]forrowinconnection.cursor().execute("SELECT distinct(time_slide_id) FROM time_slide;")]
zero_lag_ids=[]
fortsidintime_slide_ids:
iffloat(connection.cursor().execute("SELECT max(offset) FROM time_slide WHERE time_slide_id == ?;",(tsid,)).fetchone()[0])==0:
zero_lag_ids.append(tsid)
instruments_query=""" SELECT DISTINCT(instruments) FROM coinc_event WHERE coinc_def_id == ? AND time_slide_id == ?; """