Package glue :: Module offsetvector
[hide private]
[frames] | no frames]

Module offsetvector

source code


Version: git id 8cbd1b7187ce3ed9a825d6ed11cc432f3cfde9a5

Date: 2017-12-05 15:29:36 +0000

Author: Kipp Cannon <kipp.cannon@ligo.org>

Classes [hide private]
  offsetvector
Subclass of the dict built-in type for storing mappings of instrument to time offset.
Functions [hide private]
 
component_offsetvectors(offsetvectors, n)
Given an iterable of offset vectors, return the shortest list of the unique n-instrument offset vectors from which all the vectors in the input iterable can be constructed.
source code
Variables [hide private]
  __package__ = 'glue'
Function Details [hide private]

component_offsetvectors(offsetvectors, n)

source code 

Given an iterable of offset vectors, return the shortest list of the unique n-instrument offset vectors from which all the vectors in the input iterable can be constructed. This can be used to determine the minimal set of n-instrument coincs required to construct all of the coincs for all of the requested instrument and offset combinations in a set of offset vectors.

It is assumed that the coincs for the vector {"H1": 0, "H2": 10, "L1": 20} can be constructed from the coincs for the vectors {"H1": 0, "H2": 10} and {"H2": 0, "L1": 10}, that is only the relative offsets are significant in determining if two events are coincident, not the absolute offsets.