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

Module db_rinca_rings

source code

Functions [hide private]
 
get_rinca_rings_by_available_instruments(connection, program_name="rinca")
Return the rinca rings from the database at the given connection.
source code
 
get_rinca_zero_lag_segments(connection, program_name="rinca")
Return the rinca rings from the database at the given connection.
source code
 
get_veto_segments(connection, name)
Return a coalesced glue.segments.segmentlistdict object containing the segments of the given name extracted from the database at the given connection.
source code
 
get_background_offset_vectors(connection)
Return a list of the non-zero offset vectors extracted from the database at the given connection.
source code
 
get_rinca_livetimes(ring_sets, veto_segments, offset_vectors, verbose=False) source code
Function Details [hide private]

get_rinca_rings_by_available_instruments(connection, program_name="rinca")

source code 

Return the rinca rings from the database at the given connection. The rings are returned as a glue.segments.segmentlistdict indexed by the set of instruments that were analyzed in that ring.

Example:

>>> seglists = get_rinca_rings_by_available_instruments(connection)
>>> print(seglists.keys())
[frozenset(['H1', 'L1'])]

get_rinca_zero_lag_segments(connection, program_name="rinca")

source code 

Return the rinca rings from the database at the given connection. The rings are returned as a coalesced glue.segments.segmentlistdict indexed by instrument.

Example:

>>> seglists = get_rinca_zero_lag_segments(connection)
>>> print(seglists.keys())
['H1', 'L1']

This function is most useful if only zero-lag segments are desired because it allows for more convenient manipulation of the segment lists using the methods in glue.segments. If information about background segments or the original ring boundaries is desired the data returned by get_rinca_rings_by_available_instruments() is required.

get_background_offset_vectors(connection)

source code 

Return a list of the non-zero offset vectors extracted from the database at the given connection. Each offset vector is returned as a dictionary mapping instrument name to offset.