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

Module cbc_table_utils

source code


Author: Matt West <matthew.west@ligo.org>

Functions [hide private]
 
depopulate_sngl_inspiral(xmldoc, verbose=False)
This function takes the lists of event_ids from the sngl_inspiral and coinc_event_map tables and determine the difference, such that the newlist contains only non-coinc single-ifo triggers.
source code
 
remove_process_rows(xmldoc, process_ids, verbose=False) source code
 
drop_segment_tables(xmldoc, verbose=False)
Drop the segment, segment_definer & segment_summary tables from the xmldoc.
source code
 
drop_vetodef_table(xmldoc, verbose=False)
Drop the veto_definer table from the xmldoc and remove the rows in the process & process_params tables that have process_ids found in the veto_definer table.
source code
 
depopulate_experiment_tables(xmldoc, verbose=False)
Removes entries from the experiment tables that do not have events or durations in them.
source code
 
get_experiment_times(xmldoc)
Use the start & end-times stored in the segment_summary table to define the experiment times.
source code
 
populate_experiment_table(xmldoc, search_group, trigger_program, lars_id, instruments, comments=None, add_inst_subsets=False, verbose=False)
Populate the experiment table using the given entries.
source code
 
get_experiment_type(xmldoc, time_slide_dict)
Determine the which experiment type(s) the coincident triggers in this file belong to.
source code
 
populate_experiment_summ_table(xmldoc, experiment_id, time_slide_dict, veto_def_name, verbose=False)
Populate the experiment_summ_table using an experiment_id, a veto_def_name, and a list of time_slide ids.
source code
 
get_on_instruments(xmldoc, trigger_program) source code
 
generate_experiment_tables(xmldoc, **cmdline_opts)
Create or adds entries to the experiment table and experiment_summ table using instruments pulled from the search summary table and offsets pulled from the time_slide table.
source code
 
populate_experiment_map(xmldoc, veto_def_name, verbose=False) source code
Function Details [hide private]

depopulate_sngl_inspiral(xmldoc, verbose=False)

source code 

This function takes the lists of event_ids from the sngl_inspiral and coinc_event_map tables and determine the difference, such that the newlist contains only non-coinc single-ifo triggers. Then it remove these non-coinc triggers from the sngl_inspiral table.

drop_segment_tables(xmldoc, verbose=False)

source code 

Drop the segment, segment_definer & segment_summary tables from the xmldoc. In addition, remove the rows in the process & process_params tables that have process_ids found in the segment_definer table.

depopulate_experiment_tables(xmldoc, verbose=False)

source code 

Removes entries from the experiment tables that do not have events or durations in them. In other words, if none of the rows in the experiment_summary table that are assoicated with a single experiment_id have neither an event in them nor any duration then all of the rows in the experiment_summary table associated with that experiment_id are deleted, as well as the corresponding row in the experiment table. If, however, just one of the rows in the experiment_summary table associated with an experiment_id have at least a 1 in their nevents column or at least 1 second in the durations column then nothing associated with that experiment_id are deleted. (In other words, if just one time slide in an experiment has just 1 event or is just 1 second long, then none of the time slides in that experiment are deleted, even if all of the other time slides in that experiment have nothing in them.)

get_experiment_times(xmldoc)

source code 

Use the start & end-times stored in the segment_summary table to define the experiment times. This presumes that the vetoes file has been added to the file being analyzed.

populate_experiment_table(xmldoc, search_group, trigger_program, lars_id, instruments, comments=None, add_inst_subsets=False, verbose=False)

source code 

Populate the experiment table using the given entries. If add_inst_subsets is set to True, will write additional entries for every possible sub-combination of the given instrument set. Returns a dictionary of experiment_ids keyed by the instrument set.

get_experiment_type(xmldoc, time_slide_dict)

source code 

Determine the which experiment type(s) the coincident triggers in this file belong to. It uses information from the inspiral files stored in the process params table to decide if the triggers come from playground time or are from an injection run. If the time_slide_dict has more than one entry, then the triggers are from a slide run.