Package pylal :: Module ligolw_cbc_compute_durations
[hide private]
[frames] | no frames]

Module ligolw_cbc_compute_durations

source code

A collection of functions needed for ligolw_cbc_compute_durations

Functions [hide private]
 
get_single_ifo_segments(connection, program_name="inspiral", usertag=None)
Return a glue.segments.segmentlistdict object containing coalesced single-ifo segments obtained from the search_summary table.
source code
 
get_allifo_combos(ifo_keys, min_num_ifos)
Returns two dictionaries, one of the on instruments and the other of the excluded instruments in a given coincident time type e.g.
source code
 
get_veto_segments(xmldoc, verbose)
Return a dictionary of glue.segments.segmentlistdict objects containing veto segments dictionaries for each ifo and the top-level keys being the associated veto-definer names.
source code
 
get_coinc_segments(segments_dict, offset_vect)
Return the exclusive coinc segments for each (time-slide,on instruments) pair for time-slides done along a line (as opposed to rings).
source code
 
get_livetimes(segments_dict, time_slide_dict, verbose=False)
Obtain the live-times for each set of coincident segments grouped by time_slide_id and on-ifos.
source code
Function Details [hide private]

get_single_ifo_segments(connection, program_name="inspiral", usertag=None)

source code 

Return a glue.segments.segmentlistdict object containing coalesced single-ifo segments obtained from the search_summary table.

Parameters:
  • connection - sqlite connection for the input database
  • usertag - the usertag for the desired filter jobs e.g. ("FULL_DATA","PLAYGROUND")

get_allifo_combos(ifo_keys, min_num_ifos)

source code 

Returns two dictionaries, one of the on instruments and the other of the excluded instruments in a given coincident time type e.g. (H1,L1; H1,L1,V1). The dictionary keys are in the same format as the instruments column of the experiment table.

Parameters:
  • ifo_keys - an sorted list of single ifos as strings
  • min_num_ifos - the minimum number of ifos in a combination

get_coinc_segments(segments_dict, offset_vect)

source code 

Return the exclusive coinc segments for each (time-slide,on instruments) pair for time-slides done along a line (as opposed to rings).

Parameters:
  • segments_dict - the glue.segments.segmentlistdict object which contains the single-ifo segments used to compute experiment durations
  • offset_vect - the glue.offsetvector object that contains the time shifts for a given time-slide. The keys are the set of ifos being shifted.