__init__.py.in 1.13 KB
Newer Older
1
# Import SWIG wrappings, if available
2
@SWIG_BUILD_PYTHON_TRUE@from .lal import *
3

4 5
__version__ = "@PACKAGE_VERSION@"

6 7
## \addtogroup lal_python
"""This package provides Python wrappings and extensions to the @ref lal_general and @ref lal_math.
8 9
"""
#@{
10 11 12
#	\defgroup lal_py_gpstime	GPSTime
#	\defgroup lal_py_spectrum	Spectrum
#	\defgroup lal_py_utils		Utilities
13
#@}
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

#
# =============================================================================
#
#                        CachedDetectors Look-up Tables
#
# =============================================================================
#


cached_detector_by_prefix = dict((cd.frDetector.prefix, cd) for cd in CachedDetectors)
# make sure there were no duplicates
assert len(cached_detector_by_prefix) == len(CachedDetectors)


cached_detector_by_name = dict((cd.frDetector.name, cd) for cd in CachedDetectors)
# make sure there were no duplicates
assert len(cached_detector_by_name) == len(CachedDetectors)


name_to_prefix = dict((name, detector.frDetector.prefix) for name, detector in cached_detector_by_name.items())
prefix_to_name = dict((prefix, name) for name, prefix in name_to_prefix.items())