#!/usr/bin/env python
import lal
import lalsimulation
waveform = 'SpinTaylorF2threePointFivePN'
approx = lalsimulation.SimInspiralGetApproximantFromString(waveform)
amp_order = phase_order = lalsimulation.GetOrderFromString(waveform)
params = lal.CreateDict()
lalsimulation.SimInspiralWaveformParamsInsertPNPhaseOrder(params, phase_order)
lalsimulation.SimInspiralWaveformParamsInsertPNAmplitudeOrder(params, amp_order)
hplus, hcross = lalsimulation.SimInspiralFD(
m1=1.0 * lal.MSUN_SI, m2=1.0 * lal.MSUN_SI,
S1x=0.0, S1y=0.0, S1z=-0.05, S2x=0.0, S2y=0.0, S2z=-0.05,
distance=1e6 * lal.PC_SI, inclination=0, phiRef=0,
longAscNodes=0, eccentricity=0, meanPerAno=0,
deltaF=0, f_min=10.0,
f_max=4096,
f_ref=0,
LALparams=params, approximant=approx)
$ ./test.py
XLAL Error - XLALSimInspiralChooseFDWaveform: Non-zero CO spin given, but this approximant does not support this case.
XLAL Error - XLALSimInspiralChooseFDWaveform (LALSimInspiral.c:1392): Invalid argument
XLAL Error - XLALSimInspiralFD (LALSimInspiral.c:2853): Internal function call failed: Invalid argument
Traceback (most recent call last):
File "./test.py", line 12, in <module>
hplus, hcross = lalsimulation.SimInspiralFD(
RuntimeError: Internal function call failed: Invalid argument
Segmentation fault: 11