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

Source Code for Module pylal.inject

 1  # Copyright (C) 2006--2011,2013  Kipp Cannon 
 2  # 
 3  # This program is free software; you can redistribute it and/or modify it 
 4  # under the terms of the GNU General Public License as published by the 
 5  # Free Software Foundation; either version 2 of the License, or (at your 
 6  # option) any later version. 
 7  # 
 8  # This program is distributed in the hope that it will be useful, but 
 9  # WITHOUT ANY WARRANTY; without even the implied warranty of 
10  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General 
11  # Public License for more details. 
12  # 
13  # You should have received a copy of the GNU General Public License along 
14  # with this program; if not, write to the Free Software Foundation, Inc., 
15  # 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. 
16   
17   
18  # 
19  # ============================================================================= 
20  # 
21  #                                   Preamble 
22  # 
23  # ============================================================================= 
24  # 
25   
26   
27  """ 
28  Obsolete module.  Do not use. 
29  """ 
30   
31   
32  from lal import cached_detector_by_prefix, cached_detector_by_name, name_to_prefix, prefix_to_name 
33  from pylal import git_version 
34  from pylal.snglcoinc import light_travel_time 
35   
36   
37  __author__ = "Kipp Cannon <kipp.cannon@ligo.org>" 
38  __version__ = "git id %s" % git_version.id 
39  __date__ = git_version.date 
40   
41   
42  cached_detector = cached_detector_by_name 
43   
44   
45  # FIXME:  this is a hack to allow inject.light_travel_time(), which is used 
46  # internally by snglcoinc.py, to work with the H1H2 coherent and null 
47  # detectors.  the use of light_travel_time() internally by snglcoinc.py 
48  # might be inappropriate and should be re-considered.  in the meantime, 
49  # this will get the sub-solar mass search working. 
50  prefix_to_name["H1H2"] = "LHO_4k" 
51