rio module¶
- class rio.load(fname, verbose=False, data_segments_name='datasegments', vetoes_name='vetoes')[source]¶
Bases:
UserDict
- zl_event_tsv(sort_by={'coinc_inspiral': 'combined_far'}, sngl_inspiral_columns=['snr', 'chisq'], coinc_event_columns=['likelihood'], coinc_inspiral_columns=['end_time', 'end_time_ns', 'mchirp', 'mass'], limit=10, ifos=('H1', 'L1', 'V1', 'K1'))[source]¶
Iterate over strings representing rows in a tsv table with data given by the arguments to this function
Example:
>>> from gstlal import rio >>> D = rio.load('H1L1V1-ALL_LLOID-1256655642-732465.sqlite') >>> with open("blah.tsv", "w") as f: ... for row in D.zl_event_tsv(limit = 100000000): ... print (row, file = f) ... >>>