Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALSimulation 6.2.0.1-b246709
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gwsignal/models/__init__.py
Go to the documentation of this file.
1from . import pyseobnr_model
2
3import lalsimulation as lalsim
4from ..core.waveform import LALCompactBinaryCoalescenceGenerator
5
6
7def gwsignal_get_waveform_generator(waveform_approximant):
8 if waveform_approximant == "SEOBNRv5HM":
10 elif waveform_approximant == "SEOBNRv5EHM":
12 elif waveform_approximant == "SEOBNRv5PHM":
14 else:
15 try:
16 lal_approx = lalsim.SimInspiralGetApproximantFromString(
17 waveform_approximant
18 )
19 except:
20 raise ValueError("Approximant not implemented in GWSignal!")
21
22 if lalsim.SimInspiralImplementedFDApproximants(
23 lal_approx
24 ) or lalsim.SimInspiralImplementedTDApproximants(lal_approx):
25 wf_gen = LALCompactBinaryCoalescenceGenerator(waveform_approximant)
26 else:
27 # Should never get here
28 raise ValueError("Approximant not implemented in GWSignal!")
29 return wf_gen
Generator class for all CBC waveforms as implemented in LALSimulation.
Definition: waveform.py:208
Implements a wrapper for SEOBNRv5EHM in the pyseob package.
Implements a wrapper for SEOBNRv5 in the pyseob package.
Implements a wrapper for SEOBNRv5 in the pyseob package.
def gwsignal_get_waveform_generator(waveform_approximant)